Skip to content

Commit

Permalink
Some changes to CI
Browse files Browse the repository at this point in the history
* run Travis also on macOS and Windows
* run Travis only on master branch
* run Travis on latest stable Julia version
* cache artifacts
* build documentation in a separate job
  • Loading branch information
giordano committed Aug 24, 2020
1 parent 2bb9d13 commit 2708e78
Showing 1 changed file with 29 additions and 2 deletions.
31 changes: 29 additions & 2 deletions .travis.yml
@@ -1,17 +1,44 @@
language: julia
os:
- linux
- osx
- windows
julia:
- 0.7
- 1.0
- 1.1
- 1
- nightly
notifications:
email: false
#script: # the default script is equivalent to the following
# - if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
# - julia -e 'Pkg.clone(pwd()); Pkg.build("QuadGK"); Pkg.test("QuadGK"; coverage=true)';

branches:
only:
- master
- gh-pages # For building documentation
- /^testing-.*$/ # testing branches
- /^v[0-9]+\.[0-9]+\.[0-9]+$/ # version tags

cache:
directories:
- $HOME/.julia/artifacts

jobs:
allow_failures:
- julia: nightly
include:
- stage: "Documentation"
julia: 1.4
os: linux
script:
- julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd()));
Pkg.instantiate();
Pkg.build("QuadGK")'
- julia --project=docs/ docs/make.jl
after_success: skip

after_success:
- julia -e 'cd(Pkg.dir("QuadGK")); ps=Pkg.PackageSpec(name="Documenter", version="0.19"); Pkg.add(ps); Pkg.pin(ps); include(joinpath("docs", "make.jl"))';
- julia -e 'cd(Pkg.dir("QuadGK")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder())';
# - julia -e 'cd(Pkg.dir("QuadGK")); Pkg.add("Coverage"); using Coverage; Codecov.submit(Codecov.process_folder())';

0 comments on commit 2708e78

Please sign in to comment.