forked from chengchingwen/Transformers.jl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
49 lines (39 loc) · 1.03 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
language: julia
os:
- linux
- osx
- windows
julia:
- 1.3
- 1.4
- 1.5
- nightly
branch:
only:
- master
script:
- if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
- julia --project -e 'using Pkg; Pkg.instantiate(); Pkg.build(); Pkg.test(; coverage=true)';
after_success:
- julia -e 'using Pkg; cd(Pkg.dir("Transformers")); Pkg.add("Coverage"); using Coverage; Codecov.submit(Codecov.process_folder())'
notifications:
email: false
git:
depth: 99999999
jobs:
include:
- stage: "Pretrain"
julia: 1.5
os: linux
script:
- TEST_TRANSFORMERS_PRETRAIN=yes julia --project -e 'using Pkg; Pkg.instantiate(); Pkg.build(); Pkg.test(; coverage=true)';
- stage: "Documentation"
julia: 1.5
os: linux
script:
- julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd()));
Pkg.instantiate()'
- julia --project=docs/ docs/make.jl
after_success: skip
allow_failures:
- julia: nightly