-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
178 lines (164 loc) · 7.57 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
env:
global:
- secure: bOPhFqXlBfwm73ac6BMSba2UR3vwnYVDqyXeAs/5SxrW2hW7/V/MmYLQL3h3BpOYfPBa1ganEAKYrd9K6HWJN16MHyROBEbFpZmZ5DFbK/pUjYaJp+8giSytxWBzEjo2f129azETNgvzjANbpAe0+uYaxupUPvpfQkPPrII+2Jc=
- PYTHON_VERSION=3.7
- KEEP_GOING=1
os: linux
dist: trusty
language: generic
matrix:
include:
# - env: recipe=mingw_octave_trusty compilerprefix=x86_64-w64-mingw32 BITNESS=64
# - env: recipe=mingw_octave_trusty compilerprefix=i686-w64-mingw32 BITNESS=32
# - env: recipe=ipopt_mingwoct_trusty compilerprefix=x86_64-w64-mingw32 BITNESS=64
# - env: recipe=ipopt_mingwoct_trusty compilerprefix=i686-w64-mingw32 BITNESS=32
# - env: recipe=ipopt_mingw_trusty compilerprefix=x86_64-w64-mingw32 BITNESS=64
# - env: recipe=ipopt_mingw_trusty compilerprefix=i686-w64-mingw32 BITNESS=32
# - env: recipe=ipopt_dockcross DOCKCROSS=manylinux BITNESS=64
# - env: recipe=ipopt_dockcross DOCKCROSS=manylinux BITNESS=32
# - env: recipe=ipopt_trusty
# - env: recipe=ipopt_trusty GCCVERSION=5
# - env: recipe=ipopt_trusty GCCVERSION=4.7
# - {env: recipe=ipopt_osx GCCVERSION=7, os: osx, osx_image: xcode9.4}
# - env: recipe=bonmin_mingwoct_trusty compilerprefix=x86_64-w64-mingw32 BITNESS=64
# - env: recipe=bonmin_mingwoct_trusty compilerprefix=i686-w64-mingw32 BITNESS=32
# - env: recipe=bonmin_mingw_trusty compilerprefix=x86_64-w64-mingw32 BITNESS=64
# - env: recipe=bonmin_mingw_trusty compilerprefix=i686-w64-mingw32 BITNESS=32
# - env: recipe=bonmin_trusty
# - env: recipe=bonmin_trusty GCCVERSION=5
# - env: recipe=bonmin_trusty GCCVERSION=4.7
# - {env: recipe=bonmin_osx GCCVERSION=7, os: osx, osx_image: xcode9.4}
# - env: recipe=bonmin_dockcross DOCKCROSS=manylinux BITNESS=64
# - env: recipe=bonmin_dockcross DOCKCROSS=manylinux BITNESS=32
# - env: recipe=ecos_mingw_trusty compilerprefix=x86_64-w64-mingw32 BITNESS=64
# - env: recipe=ecos_mingw_trusty compilerprefix=i686-w64-mingw32 BITNESS=32
# - env: recipe=ecos_trusty
# - env: recipe=ecos_trusty GCCVERSION=5
# - env: recipe=ecos_trusty GCCVERSION=4.6
# - {env: recipe=ecos_osx GCCVERSION=7, os: osx, osx_image: xcode9.4}
# - env: recipe=ecos_dockcross DOCKCROSS=manylinux BITNESS=64
# - env: recipe=ecos_dockcross DOCKCROSS=manylinux BITNESS=32
# - env: recipe=lapack_mingwoct_trusty compilerprefix=x86_64-w64-mingw32 BITNESS=64
# - env: recipe=lapack_mingwoct_trusty compilerprefix=i686-w64-mingw32 BITNESS=32
# - env: recipe=lapack_mingw_trusty compilerprefix=x86_64-w64-mingw32 BITNESS=64
# - env: recipe=lapack_mingw_trusty compilerprefix=i686-w64-mingw32 BITNESS=32
# - {env: recipe=lapack_osx GCCVERSION=7, os: osx, osx_image: xcode9.4}
- {env: recipe=openblas_osx GCCVERSION=7, os: osx, osx_image: xcode9.4}
# - env: recipe=lapack_dockcross DOCKCROSS=manylinux BITNESS=64
# - env: recipe=lapack_dockcross DOCKCROSS=manylinux BITNESS=32
# - env: recipe=slicot_mingw_trusty compilerprefix=x86_64-w64-mingw32 BITNESS=64
# - env: recipe=slicot_mingw_trusty compilerprefix=i686-w64-mingw32 BITNESS=32
# - env: recipe=slicot_mingwoct_trusty compilerprefix=x86_64-w64-mingw32 BITNESS=64
# - env: recipe=slicot_mingwoct_trusty compilerprefix=i686-w64-mingw32 BITNESS=32
# - {env: recipe=slicot_osx GCCVERSION=7, os: osx, osx_image: xcode9.4}
# - env: recipe=clang_mingwoct_trusty compilerprefix=x86_64-w64-mingw32 BITNESS=64
# - env: recipe=clang_mingwoct_trusty compilerprefix=i686-w64-mingw32 BITNESS=32
# - env: recipe=clang_mingw_trusty compilerprefix=x86_64-w64-mingw32 BITNESS=64
# - env: recipe=clang_mingw_trusty compilerprefix=i686-w64-mingw32 BITNESS=32
# - env: recipe=clang_trusty
# - env: recipe=clang_trusty GCCVERSION=5
# - env: recipe=clang_trusty GCCVERSION=4.6
# - {env: recipe=clang_osx GCCVERSION=4.9, os: osx}
# - env: recipe=clang_dockcross DOCKCROSS=manylinux BITNESS=64
# - env: recipe=clang_dockcross DOCKCROSS=manylinux BITNESS=32
# - env: recipe=swig_trusty
# - env: recipe=swig_matlab_trusty BAKEVERSION=matlab-customdoc
# - env: recipe=swig_matlab_trusty BAKEVERSION=b921b0ee5fa928a16
# - env: recipe=swig_matlab_trusty BAKEVERSION=82714bf35c33fe2
# - env: recipe=swig_matlab_trusty BAKEVERSION=234d6ea3a08ef71
- env: recipe=swig_dockcross DOCKCROSS=manylinux BITNESS=64 BAKEVERSION=matlab-customdoc
- env: recipe=swig_dockcross DOCKCROSS=manylinux BITNESS=32 BAKEVERSION=matlab-customdoc
# - { os: osx, env: recipe=swig_matlab_osx BAKEVERSION=matlab-customdoc GCCVERSION=7, osx_image: xcode9.4}
# - { os: osx, env: recipe=swig_matlab_osx BAKEVERSION=b921b0ee5fa928a16}
# - { os: osx, env: recipe=swig_matlab_osx BAKEVERSION=82714bf35c33fe2}
# - { os: osx, env: recipe=swig_matlab_osx BAKEVERSION=234d6ea3a08ef71}
# - env: recipe=mingw_octave_trusty
# - env: recipe=hsl_mingwoct_trusty compilerprefix=x86_64-w64-mingw32 BITNESS=64
# - env: recipe=hsl_mingwoct_trusty compilerprefix=i686-w64-mingw32 BITNESS=32
# - env: recipe=hsl_mingw_trusty compilerprefix=i686-w64-mingw32 BITNESS=32
# - env: recipe=hsl_mingw_trusty compilerprefix=x86_64-w64-mingw32 BITNESS=64
# - env: recipe=hsl_dockcross DOCKCROSS=manylinux BITNESS=64
# - env: recipe=hsl_dockcross DOCKCROSS=manylinux BITNESS=32
# - env: recipe=hsl_trusty GCCVERSION=4.7
# - env: recipe=hsl_trusty GCCVERSION=5
# - env: recipe=hsl_trusty GCCVERSION=4.6
# - { env: recipe=hsl_osx GCCVERSION=7, os: osx, osx_image: xcode9.4 }
python:
- "2.7_with_system_site_packages"
before_install:
- |
if [[ $TRAVIS_OS_NAME == *linux* ]]
then
sudo dpkg --add-architecture i386
sudo apt-get update -q
sudo apt-get install libpython2.7-dev libc6:i386 libncurses5:i386 libstdc++6:i386
sudo apt-get update -qq
fi
- source recipes/setup.sh
- |
if [[ $TRAVIS_OS_NAME == *linux* ]]
then
if [[ $GCCVERSION ]]
then
if [[ $GCCVERSION == 5 ]]
then
pinning xenial
sudo apt-get install -t xenial -y gcc-$GCCVERSION g++-$GCCVERSION gfortran-$GCCVERSION
else
sudo apt-get install -y gcc-$GCCVERSION g++-$GCCVERSION gfortran-$GCCVERSION
fi
export CC=gcc-$GCCVERSION
export CXX=g++-$GCCVERSION
export FC=gfortran-$GCCVERSION
export F77=gfortran-$GCCVERSION
else
sudo apt-get install -y gcc g++ gfortran
fi
else
shell_session_update() { :; } # Workaround for travis-ci/travis-ci#6522
#brew update
#brew install binutils
python_setup
osx_gcc7_setup
#brew reinstall gcc49 #--with-fortran
#export FC=gfortran-$GCCVERSION
#export F77=gfortran-$GCCVERSION
#export CC=gcc-$GCCVERSION
#export CXX=g++-$GCCVERSION
#sudo /usr/libexec/locate.updatedb
#locate libstdc++*
#locate libgomp*
#locate libgcc_s*
#locate libquadmath*
#locate libgfortran*
#find / -name "libstdc++*"
#find / -name "libgomp*"
#find / -name "libgcc_s*"
#find / -name "libquadmath*"
#find / -name "libgfortran*"
if [[ $recipe == *swig* ]]
then
echo "nothing"
else
osx_rpath_gcc7
fi
fi
install:
- #set -e
- source shellhelpers && false || allowfail 1 && echo "okay"
- |
if [[ $compilerprefix == *w64* ]]
then
if [[ $recipe == *mingw_* ]]
then
if [[ $recipe == *octave* ]]
then
echo "Nothing to do"
else
mingw_setup # exclude mingwoct
fi
fi
fi
- source recipes/$recipe.sh || remote_access
script:
- echo "All is fine"