forked from PyMesh/PyMesh
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
91 lines (89 loc) · 2.53 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
language: cpp
sudo: required
virtualenv:
system_site_packages: true
git:
submodules: false
depth: 1
addons:
homebrew:
packages:
- ccache
- cmake
update: true
cache: ccache
matrix:
include:
- os: osx
osx_image: xcode11.2
compiler: clang
before_install:
- git submodule update --init
- sw_vers
- python3 -m venv pyenv
- source pyenv/bin/activate
install:
- pip install -r python/requirements.txt
- os: osx
osx_image: xcode9.4
compiler: clang
before_install:
- git submodule update --init
- sw_vers
- python3 -m venv pyenv
- source pyenv/bin/activate
install:
- pip install -r python/requirements.txt
- os: osx
osx_image: xcode9.3
compiler: clang
before_install:
- git submodule update --init
- sw_vers
- pip install virtualenv
- virtualenv pyenv
- source pyenv/bin/activate
install:
- pip install -r python/requirements.txt
- os: linux
dist: xenial
python: "2.7"
addons:
apt:
update: true
sources:
- sourceline: ppa:deadsnakes/ppa
packages:
- libeigen3-dev
- libgmp-dev
- libgmpxx4ldbl
- libmpfr-dev
- libboost-dev
- libboost-thread-dev
- libtbb-dev
before_install:
- git submodule update --init
# Conda (Miniconda)
- wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -O miniconda.sh;
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
# Useful for debugging any issues with conda
- conda info -a
install:
# Create conda enviroment
- conda create -q -n test-environment python=2.7
- source activate test-environment
- conda install cmake
# info on python executables
- python --version
- pip install -r python/requirements.txt
script:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export PATH="/usr/local/opt/ccache/libexec:$PATH"; fi
- ccache --max-size=5.0G
- ccache -V && ccache --show-stats && ccache --zero-stats
- ./setup.py build
- ./setup.py install
- python -c "import pymesh; import sys; sys.exit(0 if pymesh.test().wasSuccessful() else 1)"