Skip to content

Commit 74c31d9

Browse files
authored
Tp/UUID ci fixes (#5)
Use default UUID, projects for coverage.
1 parent 32472ba commit 74c31d9

6 files changed

Lines changed: 41 additions & 21 deletions

File tree

.codecov.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
comment: false

.travis.yml

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,32 +4,38 @@ os:
44
- linux
55
# - osx
66
julia:
7-
- 0.7
7+
- 1.0
88
- nightly
99
notifications:
1010
email: false
1111
git:
1212
depth: 99999999
1313

14-
## uncomment the following lines to allow failures on nightly julia
15-
## (tests will run but not make your overall status red)
16-
#matrix:
17-
# allow_failures:
18-
# - julia: nightly
19-
2014
before_install:
2115
- sudo apt-get install -y joe xdg-utils
2216
- mkdir -p ~/.config
2317
## lines below commented out because xdg-open uses the browser fallback
2418
# - export EDITOR=jmacs
2519
# - export DISPLAY="dummy" # trick xdg-open to assuming a display
2620
# - xdg-mime default jmacs.desktop text/plain
27-
- export BROWSER="jmacs" # trick xdg-open to use jmacs as the browser (fallback, this is the one actually used)
21+
- export BROWSER="jmacs" # trick xdg-open to use jmacs as the browser (fallback, this is the one actually used)
22+
23+
## uncomment the following lines to allow failures on nightly julia
24+
## (tests will run but not make your overall status red)
25+
#matrix:
26+
# allow_failures:
27+
# - julia: nightly
2828

29-
script:
30-
- julia test_script.jl
29+
## uncomment following lines to deploy documentation
30+
# jobs:
31+
# include:
32+
# - stage: Documentation
33+
# julia: 1.0
34+
# os: linux
35+
# script:
36+
# - julia --project=docs -e 'using Pkg; Pkg.instantiate(); Pkg.develop(PackageSpec(path=pwd()))'
37+
# - julia --project=docs --color=yes docs/make.jl
38+
# after_success: skip
3139
after_success:
32-
# push coverage results to Coveralls
33-
- julia -e 'cd(Pkg.dir("DefaultApplication")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder())'
34-
# push coverage results to Codecov
35-
- julia -e 'cd(Pkg.dir("DefaultApplication")); Pkg.add("Coverage"); using Coverage; Codecov.submit(Codecov.process_folder())'
40+
- julia --project=test/coverage -e 'using Pkg; Pkg.instantiate()'
41+
- julia --project=test/coverage test/coverage/coverage.jl

Project.toml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
1-
authors = ["Tamas K. Papp <tkpapp@gmail.com>"]
21
name = "DefaultApplication"
3-
uuid = "02461166-8828-11e8-2388-d11131fa06e9"
4-
version = "0.1.2"
2+
uuid = "3f0dd361-4fe0-5fc6-8523-80b14ec94d85"
3+
authors = ["Tamas K. Papp <tkpapp@gmail.com>"]
4+
version = "0.1.3"
55

66
[deps]
7+
8+
[extras]
9+
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
10+
11+
[targets]
12+
test = ["Test"]

test/coverage/Project.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[deps]
2+
Coverage = "a2441757-f6aa-5fb2-8edb-039e3f45d037"

test/coverage/coverage.jl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# only push coverage from one bot
2+
get(ENV, "TRAVIS_OS_NAME", nothing) == "linux" || exit(0)
3+
get(ENV, "TRAVIS_JULIA_VERSION", nothing) == "1.0" || exit(0)
4+
5+
using Coverage
6+
7+
cd(joinpath(@__DIR__, "..", "..")) do
8+
Codecov.submit(Codecov.process_folder())
9+
end

test_script.jl

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)