forked from MethodicalAcceleratorDesign/MAD-X
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
67 lines (50 loc) · 1.36 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
language: cpp
compiler:
- gcc
language: python
dist: xenial
- "3.6"
env:
- MADXDIR="$HOME/.local"
install:
- pip install cpp-coveralls
- make madx-linux64-gnu COVERAGE=yes
- make numdiff-linux64-gnu
- pip install cython
- git clone https://github.com/tpersson/cpymad.git
- cd cpymad
- git checkout addingDistribution
- cd ..
- ./buildcpymad.sh
- cd cpymad && python setup.py build_ext --no-X11 --blas --lapack --madxdir=$MADXDIR
- pip install -e .
- cd test && python test_madx.py
script:
- python test_madx.py > /dev/null 2>&1
- python test_util.py > /dev/null 2>&1
- cd ../../
- make tests &&
NUM_FAILED=$(grep -oP '(?<= FAILED ).*' tests/tests-summary.txt) &&
[[ $NUM_FAILED -eq 0 ]]
- (cd doc/latexuguide && ./makelatexdoc) ||
(cat doc/latexuguide/makelatexdoc.log && false)
after_success:
- coveralls --include src -x .c -x .cpp
addons:
apt:
packages:
- libblas-dev
- liblapack-dev
- gfortran
- gnuplot
- texlive-latex-base
- texlive-latex-extra
- texlive-fonts-recommended
- latex-xcolor
git:
# Limit cloning depth to reduce download bandwidth:
# Please note that if you use a depth of 1 and have a queue of jobs, Travis
# CI won’t build commits that are in the queue when you push a new commit.
depth: 1
# Don't clone the `examples/` submodule:
submodules: false