forked from JuliaLang/Pkg.jl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
64 lines (54 loc) · 1.77 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
language: julia
julia:
- 1.0
- nightly
os:
- linux
- osx
notifications:
email: false
before_script:
- export PATH=$HOME/.local/bin:$PATH
branches:
only:
- master
- staging
- trying
- /^v[0-9]+\.[0-9]+\.[0-9]+$/ # version tags
stages:
- name: test
# test only on bors trying and bors staging
if: branch IN (trying, staging)
- name: docs
# build docs on bors trying, bors staging, master and for tags
if: branch IN (trying, staging) OR (branch = master AND type = push) OR tag IS present
script:
- if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
- julia --project --check-bounds=yes -e 'using UUIDs; write("Project.toml", replace(read("Project.toml", String), r"uuid = .*?\n" =>"uuid = \"$(uuid4())\"\n"));
import Pkg; Pkg.build(); Pkg.test(; coverage=true)'
jobs:
include:
- stage: docs
julia: nightly
os: linux
script:
- julia -e 'using UUIDs; write("Project.toml", replace(read("Project.toml", String), r"uuid = .*?\n" =>"uuid = \"$(uuid4())\"\n"))'
- julia --project -e 'using Pkg; Pkg.activate("docs"); Pkg.instantiate(); Pkg.develop(PackageSpec(path = pwd()))'
- julia --project=docs --color=yes docs/make.jl pdf
after_success: skip
- name: TOML (Julia 1.0)
stage: test
os: linux
julia: 1.0
script:
- julia --project=ext/TOML -e 'using Pkg; Pkg.test()'
after_success: skip
- name: TOML (Julia nightly)
stage: test
os: linux
julia: nightly
script:
- julia --project=ext/TOML -e 'using Pkg; Pkg.test()'
after_success: skip
after_success:
- julia --project -e 'import Pkg; Pkg.add("Coverage"); using Coverage; Codecov.submit(Codecov.process_folder())'