forked from tpaviot/pythonocc-demos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
67 lines (59 loc) · 1.88 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
os: linux
dist: bionic
language: cpp
git:
depth: false
services:
- xvfb
jobs:
include:
# Linux
- env: PYTHON="3.6" CONDA_PY=36 ARCH="x86_64"
- env: PYTHON="3.7" CONDA_PY=37 ARCH="x86_64"
# OSX
- env: PYTHON="3.6" CONDA_PY=36 ARCH="x86_64"
os: osx
osx_image: xcode9.4
- env: PYTHON="3.7" CONDA_PY=37 ARCH="x86_64"
os: osx
osx_image: xcode9.4
# Windows
before_install:
- if [[ "$TRAVIS_OS_NAME" != "windows" ]]; then
MINICONDA_PATH=$HOME/miniconda;
MINICONDA_SUB_PATH=$MINICONDA_PATH/bin;
elif [[ "$TRAVIS_OS_NAME" == "windows" ]]; then
MINICONDA_PATH=/c/tools/miniconda3;
MINICONDA_SUB_PATH=$MINICONDA_PATH/Scripts;
fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
elif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
wget https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh;
fi
install:
- if [[ "$TRAVIS_OS_NAME" != "windows" ]]; then
chmod +x miniconda.sh;
yes | ./miniconda.sh -b -p $MINICONDA_PATH;
elif [[ "$TRAVIS_OS_NAME" == "windows" ]]; then
echo "installing miniconda for windows";
choco install openssl.light;
choco install miniconda3;
fi;
- export PATH="$MINICONDA_PATH:$MINICONDA_SUB_PATH:$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
# download/install OCE from DLR-SC channel
- conda config --add channels https://conda.anaconda.org/dlr-sc
# create a test environment
- conda create -n test_pythonocc python=$PYTHON
# switch to this environment
- source activate test_pythonocc
- conda install -c tpaviot pythonocc-core=7.4.0
- conda install pyqt
- conda install numpy
script:
- sh run_examples.sh