forked from pmgbergen/porepy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
56 lines (44 loc) · 1.23 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
sudo: true
language: python
cache: pip
matrix:
include:
- os: linux
dist: trusty
python: 3.6
- os: linux
dist: xenial
python: 3.7
before install:
- chmod +x ./test/regression/run_cron_test.sh
install:
- sudo apt-get update
- sudo apt-get install libglu1-mesa
- pip install -r requirements-dev.txt
- pip install jupyter
- pip install .
- pip install shapely
- pip install shapely[vectorized]
- pip freeze
# Show all packages, for debugging
before_script:
# Download gmsh
- wget http://gmsh.info/bin/Linux/gmsh-4.1.3-Linux64.tgz
- pwd
- ls
- tar xvf gmsh-4.1.3-Linux64.tgz
# Create porepy config file
- cd $TRAVIS_BUILD_DIR
- echo $TRAVIS_BUILD_DIR
- echo "config = {\"gmsh_path\":\"$TRAVIS_BUILD_DIR/gmsh-4.1.3-Linux64/bin/gmsh\"} " > porepy_config.py
# add $HOME to $PYTHONPATH to make config file accessible
- export PYTHONPATH=${TRAVIS_BUILD_DIR}:${PYTHONPATH}
# Download fire for point-in-polyhedron test
- wget https://raw.githubusercontent.com/keileg/polyhedron/master/polyhedron.py
# Rename file
- mv polyhedron.py robust_point_in_polyhedron.py
script:
- python setup.py test
- sh ./test/regression/run_cron_test.sh
after_success:
- coveralls