tMove codecov into deploy, change conditions for doc build - Granular.jl - Juli… | |
git clone git://src.adamsgaard.dk/Granular.jl | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 1c93f64c3b52d9afc41549b05a30f4331b821cb4 | |
parent 1d0bc47ef54f22dc468c293e0f89a5b6f363be8e | |
Author: Anders Damsgaard <[email protected]> | |
Date: Thu, 29 Nov 2018 19:39:05 +0100 | |
Move codecov into deploy, change conditions for doc build | |
Diffstat: | |
M .travis.yml | 37 +++++++++++++++++------------… | |
1 file changed, 20 insertions(+), 17 deletions(-) | |
--- | |
diff --git a/.travis.yml b/.travis.yml | |
t@@ -24,26 +24,24 @@ matrix: | |
allow_failures: | |
- julia: nightly | |
-stages: # Set order of stages | |
- - test | |
- - docs | |
+script: | |
+ - if [[ -a .git/shallow ]]; then git fetch --unshallow; fi | |
+ - julia -e 'VERSION >= v"0.7" && (import Pkg; Pkg.add("NetCDF"); | |
+ Pkg.build("NetCDF"))' | |
+ - julia -e 'import Pkg; Pkg.clone(pwd()); Pkg.build("Granular"); | |
+ Pkg.test("Granular"; coverage=true)'; | |
+ | |
+deploy: | |
+ - provider: script | |
+ script: julia -e 'import Pkg; Pkg.add("Coverage"); using Coverage; | |
+ Codecov.submit(Codecov.process_folder());' | |
+ on: | |
+ os: linux | |
+ julia: 1.0 | |
+ all_branches: true | |
jobs: | |
include: | |
- - stage: test | |
- script: | |
- - if [[ -a .git/shallow ]]; then git fetch --unshallow; fi | |
- - julia -e 'VERSION >= v"0.7" && (import Pkg; Pkg.add("NetCDF"); | |
- Pkg.build("NetCDF"))' | |
- - julia -e 'import Pkg; Pkg.clone(pwd()); Pkg.build("Granular"); | |
- Pkg.test("Granular"; coverage=true)'; | |
- after_success: | |
- - julia -e 'import Pkg; Pkg.add("Coverage"); using Coverage; | |
- Codecov.submit(Codecov.process_folder());' | |
- on: | |
- os: linux | |
- julia: 1.0 | |
- all_branches: true | |
- stage: docs | |
julia: 1.0 | |
os: linux | |
t@@ -52,3 +50,8 @@ jobs: | |
Pkg.develop(PackageSpec(path=pwd()))' | |
- julia --project=docs/ docs/make.jl | |
after_success: skip | |
+ on: | |
+ os: linux | |
+ julia: 1.0 | |
+ all_branches: true | |
+ condition: $TRAVIS_BRANCH == "master" || -n $TRAVIS_TAG |