tRewrite travis configuration and split into jobs - Granular.jl - Julia package for granular dynamics simulation
(HTM) git clone git://src.adamsgaard.dk/Granular.jl
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 27bb79b7c8f0b5bbf122b9d849f56ffe82c8f18f
(DIR) parent 5cc7b425e3d6a9f918268f26b3752cbe0ebce32c
(HTM) Author: Anders Damsgaard <anders@adamsgaard.dk>
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(-)
---
(DIR) 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 anyway
- - 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 'using Pkg; Pkg.add("Coverage"); using Coverage; Coveralls.submit(process_folder())'
-
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: