forked from JuliaMolSim/DFTK.jl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
71 lines (66 loc) · 1.74 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
64
65
66
67
68
69
70
71
branches:
only:
# Only build master and version tags
- master
- /^v\d+\.\d+(\.\d+)?(-\S*)?$/
# For Bors:
- staging
- trying
language: julia
cache:
directories:
- $HOME/.julia/artifacts
env:
global:
- PYTHON="" # Force using Conda in PyCall
script: # Install dependencies and test with coverage
- &conda |
julia -e '
# Some optional python packages via conda
using Pkg
Pkg.add("Conda")
using Conda
# matplotlib 3.2.2 requirement can be removed once ASE 3.20.1 is in conda
Conda.add("matplotlib =3.2.2", channel="conda-forge")
Conda.add(["blas=*=*netlib", "nomkl", "ase"]; channel="conda-forge")
'
- julia -e 'using Pkg; Pkg.build(; verbose=true); Pkg.test(coverage=true)'
after_success: | # Upload coverage when things are good.
julia -e '
using Pkg; Pkg.add("Coverage"); using Coverage;
coverage = Coveralls.process_folder();
for excluded in ["src/FourierTransforms.jl", "src/eigen/diag_lobpcg_itsolve.jl"]
filter!(c -> !occursin(excluded, c.filename), coverage);
end
Coveralls.submit(coverage)
'
os:
- linux
- osx
julia: "1.3"
jobs:
allow_failures: # Allow to fail on nightly
- julia: nightly
include:
- julia: nightly
os: linux
- stage: "Documentation"
os: linux
script:
- |
julia --project=docs/ -e '
using Pkg
Pkg.develop(PackageSpec(path=pwd()))
Pkg.instantiate()
Pkg.build("DFTK")
'
- *conda
- julia --project=docs/ docs/make.jl
after_success: skip
notifications:
email: false
webhooks:
urls:
- https://webhooks.gitter.im/e/675ffcbb101b5d1a3424
on_success: always
on_failure: always