-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy path.travis.yml
62 lines (51 loc) · 1.41 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
dist: xenial
sudo: required
language: python
python:
- "2.7"
- "3.5"
- "3.6"
- "3.7"
- "3.8"
# - "pypy-5.7.1"
branches:
only:
master
# Install dependencies
before_install:
- FLORENCEPATH=$(pwd)
- echo $FLORENCEPATH
- sudo apt-get update --fix-missing
- sudo apt-get install curl
# Install BLAS libraries
- echo -ne '\n' | sudo apt-get install gfortran libblas-dev liblapack-dev libatlas-base-dev libopenblas-* libsuitesparse-dev swig
# pypi packages - install before installing PostMesh
- cd $FLORENCEPATH
- travis_wait 50 pip install -r "requirements.txt"
# Install Eigen
- EIGENVERSION=3.3.8
- cd ~
- curl https://gitlab.com/libeigen/eigen/-/archive/$EIGENVERSION/eigen-$EIGENVERSION.tar.bz2 -o eigen.tar.bz2
- tar -xvf eigen.tar.bz2
- sudo mv eigen-$EIGENVERSION /usr/local/include/eigen/
# Install OpenCascade
- echo -ne '\n' | sudo apt-get install liboce-*
# PostMesh
- pip install PostMeshPy
# Fastor
- git clone https://github.com/romeric/Fastor
- sudo mv Fastor /usr/local/include/Fastor/
# update the cache
- sudo ldconfig
install:
# build florence modules
- cd $FLORENCEPATH; echo -ne '\n' | python setup.py build
script:
# Run florence test suite
- cd ~
- export PYTHONPATH=$FLORENCEPATH:$PYTHONPATH
- cd $FLORENCEPATH/tests; nosetests -x --with-coverage --cover-package=Florence test.py
after_success:
- coveralls
notifications:
email: false