tRewrite travis configuration and split into jobs - Granular.jl - Julia package… | |
git clone git://src.adamsgaard.dk/Granular.jl | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 27bb79b7c8f0b5bbf122b9d849f56ffe82c8f18f | |
parent 5cc7b425e3d6a9f918268f26b3752cbe0ebce32c | |
Author: Anders Damsgaard <[email protected]> | |
Date: Thu, 29 Nov 2018 13:58:05 +0100 | |
Rewrite travis configuration and split into jobs | |
Diffstat: | |
M .travis.yml | 44 +++++++++++++++++------------… | |
1 file changed, 24 insertions(+), 20 deletions(-) | |
--- | |
diff --git a/.travis.yml b/.travis.yml | |
t@@ -1,17 +1,9 @@ | |
# Documentation: http://docs.travis-ci.com/user/languages/julia/ | |
language: julia | |
-os: | |
- - linux | |
- - osx | |
- | |
-julia: | |
- - 1.0 | |
- - nightly | |
- | |
notifications: | |
email: | |
- on_success: never # default: change | |
+ on_success: never # default: change | |
on_failure: always # default: always | |
addons: | |
t@@ -20,23 +12,35 @@ addons: | |
- gnuplot | |
- imagemagick | |
-before_script: # NetCDF is not required, but test its dependent functions any… | |
- - julia -e 'VERSION >= v"0.7" && (import Pkg; Pkg.add("NetCDF"); Pkg.build("… | |
- | |
-script: | |
- - if [[ -a .git/shallow ]]; then git fetch --unshallow; fi | |
- - julia -e 'import Pkg; Pkg.clone(pwd()); Pkg.build("Granular"); Pkg.test("G… | |
- | |
-after_success: | |
- - julia -e 'using Pkg; Pkg.add("Coverage"); using Coverage; Coveralls.submit… | |
- | |
matrix: | |
allow_failures: | |
- julia: nightly | |
+stages: # Set order of stages | |
+ - test | |
+ - docs | |
+ | |
jobs: | |
include: | |
- - stage: "Documentation" | |
+ - stage: test | |
+ os: | |
+ - linux | |
+ - osx | |
+ julia: | |
+ - 1.0 | |
+ - nightly | |
+ before_script: # NetCDF is an optional dependency | |
+ - julia -e 'VERSION >= v"0.7" && (import Pkg; Pkg.add("NetCDF"); | |
+ Pkg.build("NetCDF"))' | |
+ script: | |
+ - if [[ -a .git/shallow ]]; then git fetch --unshallow; fi | |
+ - julia -e 'import Pkg; Pkg.clone(pwd()); Pkg.build("Granular"); | |
+ Pkg.test("Granular"; coverage=true)'; | |
+ after_success: | |
+ - julia -e 'import Pkg; cd(Pkg.dir("Granular")); | |
+ Pkg.add("Coverage"); using Coverage; | |
+ Codecov.submit(process_folder())' | |
+ - stage: docs | |
julia: 1.0 | |
os: linux | |
script: |