forked from pymad/cpymad
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
45 lines (38 loc) · 1.19 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
language: python
python:
- "2.6"
- "2.7"
- "3.3"
before_install:
# install gfortran
- sudo apt-get install gfortran
# Build MAD-X (takes a lot of time - should use a binary distribution):
- svn co http://svn.cern.ch/guest/madx/trunk/madX
- cd madX
- cmake -DCMAKE_C_COMPILER=gcc
-DCMAKE_Fortran_COMPILER=gfortran
-DMADX_STATIC=OFF
-DMADX_ONLINE=OFF
-DBUILD_SHARED_LIBS=ON
-DCMAKE_INSTALL_PREFIX=/usr
-DBINARY_POSTFIX=_dev
-DCMAKE_BUILD_TYPE=RelWithDebInfo .
- make
- sudo make install
- cd ..
# Setup (performed within virtualenv)
install:
# We need to install cython here, since Travis uses the checkout from the
# repository which doesn't contain ".c" source files (unlike the source
# distribution from PyPI):
- pip install cython
# Check that the source distribution can be used for installation -
# without having any dependencies installed other than Cython:
- python setup.py sdist
- pip install $(ls ./dist/*.tar.gz | sort -rV | head -n1)
# Actual tests:
script:
- python test/test_resource.py
- python test/test_madx.py
- python test/test_model_locator.py
- python test/test_survey.py