Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 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
Showing
1 changed file
with
29 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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())'; |