1
- sudo : false
1
+ os : linux
2
+ dist : bionic
2
3
3
4
language : cpp
4
5
5
- cache :
6
- apt : true
7
-
8
6
git :
9
7
depth : false
10
8
27
25
# after that, copy/paste the secure on the following line
28
26
env :
29
27
global :
30
- - secure : " Mu6SQsBmz2inttfIj3pXk4lx6ZXNs7MAq1agDgnGJknQTTi4ta0H+usxKhhGvxkh4eGgX01HuXAbPejU0W9xatHvYDQ3piKvqv672TrhYShHA4bWJke3q88BezSYaDQ+UBTmP5DD/ZFbprH+6bP9WqpRaYGC6UHbFkjRKEd2bk4="
31
-
32
- addons :
33
- apt :
34
- packages :
35
- - mesa-common-dev
36
- - libgl1-mesa-dev
37
- - libglu1-mesa-dev
28
+ - secure : " Bqor4TrYqeJUkjiIHjCq/e3xt/jAoU3Q5kwG/ej+QxaiT6hmkirX3Io3rHxNTbS+mYMAMTbtkkpGqYIYIYtNVx8jGYLdwOzNcuW/wzZf9VuAW/rnjx2lzuYRhHk3GOylSPUU06JHvXDmZvdMxetNBeWaE5hGuJsC9liA+stDepA="
38
29
39
- matrix :
30
+ jobs :
40
31
include :
32
+ # Linux
41
33
- env : PYTHON="3.5" CONDA_PY=35 ARCH="x86_64"
42
- os : linux
43
- dist : bionic
44
- - env : PYTHON="3.5" CONDA_PY=35 ARCH="x86_64"
45
- os : osx
46
- osx_image : xcode9.4
47
- - env : PYTHON="3.6" CONDA_PY=36 ARCH="x86_64"
48
- os : linux
49
- dist : bionic
50
34
- env : PYTHON="3.6" CONDA_PY=36 ARCH="x86_64"
51
- os : osx
52
- osx_image : xcode9.4
53
- - env : PYTHON="3.7" CONDA_PY=37 ARCH="x86_64"
54
- os : linux
55
- dist : bionic
56
35
- env : PYTHON="3.7" CONDA_PY=37 ARCH="x86_64"
36
+ # OSX
37
+ - env : PYTHON="3.5" CONDA_PY=35 ARCH="x86_64" MACOSX_DEPLOYMENT_TARGET=10.9
38
+ os : osx
39
+ osx_image : xcode9.4
40
+ - env : PYTHON="3.6" CONDA_PY=36 ARCH="x86_64" MACOSX_DEPLOYMENT_TARGET=10.9
41
+ os : osx
42
+ osx_image : xcode9.4
43
+ - env : PYTHON="3.7" CONDA_PY=37 ARCH="x86_64" MACOSX_DEPLOYMENT_TARGET=10.9
57
44
os : osx
58
- osx_image : xcode9.4
45
+ osx_image : xcode9.4
46
+ # Windows
47
+ # - env: PYTHON="3.5" CONDA_PY=35 ARCH="x86_64" CC="cl.exe" CXX="cl.exe" MSVC_TOOLSET_VERSION=15
48
+ # os: windows
49
+ # - env: PYTHON="3.6" CONDA_PY=36 ARCH="x86_64" CC="cl.exe" CXX="cl.exe" MSVC_TOOLSET_VERSION=15
50
+ # os: windows
51
+ # - env: PYTHON="3.7" CONDA_PY=37 ARCH="x86_64" CC="cl.exe" CXX="cl.exe" MSVC_TOOLSET_VERSION=15
52
+ # os: windows
53
+
59
54
# Use miniconda to install binary versions of numpy etc. from continuum
60
55
# analytic's repository. Follows an approach described by Dan Blanchard:
61
56
# https://gist.github.com/dan-blanchard/7045057
62
57
before_install :
63
- - if [ ${PYTHON:0:1} == "2" ]; then
64
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then
65
- wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -O miniconda.sh ;
66
- else
67
- wget https://repo.continuum.io/miniconda/Miniconda2-latest-MacOSX-x86_64.sh -O miniconda.sh ;
68
- fi ;
69
- else
70
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then
58
+ - if [[ "$TRAVIS_OS_NAME" != "windows" ] ]; then
59
+ MINICONDA_PATH=$HOME/miniconda;
60
+ MINICONDA_SUB_PATH=$MINICONDA_PATH/bin ;
61
+ elif [[ "$TRAVIS_OS_NAME" == "windows" ]]; then
62
+ MINICONDA_PATH=/c/tools/miniconda3 ;
63
+ MINICONDA_SUB_PATH=$MINICONDA_PATH/Scripts ;
64
+ fi
65
+ - if [ "$TRAVIS_OS_NAME" == "linux" ]; then
71
66
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
72
- else
67
+ elif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
73
68
wget https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh;
74
- fi;
69
+ wget https://github.com/phracker/MacOSX-SDKs/releases/download/10.13/MacOSX10.9.sdk.tar.xz -O MacOSX10.9.sdk.tar.xz;
70
+ tar xf MacOSX10.9.sdk.tar.xz;
71
+ sudo mv MacOSX10.9.sdk /opt/;
72
+ ls /opt;
73
+ fi
74
+
75
+ install :
76
+ - if [[ "$TRAVIS_OS_NAME" != "windows" ]]; then
77
+ chmod +x miniconda.sh;
78
+ yes | ./miniconda.sh -b -p $MINICONDA_PATH;
79
+ elif [[ "$TRAVIS_OS_NAME" == "windows" ]]; then
80
+ echo "installing miniconda for windows";
81
+ choco install openssl.light;
82
+ choco install miniconda3;
75
83
fi;
76
- - chmod +x miniconda.sh
77
- # When we are installing the 32 Bit conda on a 64 Bit system, the miniconda
78
- # installer will ask for a "yes" despite the -b flag, so we pipe in a yes
79
- - yes | ./miniconda.sh -b -p $HOME/miniconda
80
- # - bash miniconda.sh -b -p -f $HOME/miniconda
81
- - export PATH="$HOME/miniconda/bin:$HOME/miniconda/lib:$PATH"
84
+ - export PATH="$MINICONDA_PATH:$MINICONDA_SUB_PATH:$PATH";
82
85
- export PYTHONUNBUFFERED=1
83
86
- hash -r
84
- - conda config --set always_yes yes --set changeps1 no
87
+ - conda config --set always_yes yes --set changeps1 no --set ssl_verify false
85
88
- conda update -q conda
86
89
# install everything required to build the receipe
87
- # conda-build 3.2.0 on osx to prevent using check_overlinking
88
- # method which is quite loooong to process
89
- # - conda install conda-build==3.2.0
90
- - conda install conda-build anaconda-client
90
+ - conda install conda-build
91
+ - conda install anaconda-client
91
92
# Useful for debugging any issues with conda
92
93
- conda info -a
93
- # download/install OCE from DLR-SC channel
94
- - conda config --add channels dlr-sc
95
- - conda config --add channels conda-forge
96
- - conda config --add channels tpaviot
97
- - conda config --add channels oce
98
- - conda config --add channels pythonocc
94
+ # dlr-sc channel is required for opencascade-7.4.0 package
95
+ - conda config --add channels https://conda.anaconda.org/dlr-sc
96
+ - conda config --add channels https://conda.anaconda.org/conda-forge
99
97
100
98
script :
101
99
- conda build ci/conda --dirty --no-remove-work-dir
@@ -110,7 +108,7 @@ after_success:
110
108
anaconda -t $BINSTAR_TOKEN upload *.bz2 -l main --force;
111
109
else
112
110
anaconda -t $BINSTAR_TOKEN upload *.bz2 -l cd-$TRAVIS_BRANCH --force;
113
- fi;
111
+ fi
114
112
115
113
116
114
branches :
0 commit comments