-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
74 lines (73 loc) · 3.56 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
sudo: required
env:
global:
- APT_DEPENDENCIES="cmake cmake-data doxygen doxygen-latex libltdl-dev libboost-all-dev liblog4cxx10-dev"
- HOMEBREW_DEPENDENCIES="doxygen log4cxx dartsim/dart/ipopt openblas mumps"
- GIT_DEPENDENCIES="roboptim/roboptim-core roboptim/roboptim-core-plugin-ipopt"
- GH_USERNAME=thomas-moulard
- GH_REPO=roboptim/roboptim-core-python
- LCOV_IGNORE_RULES="*tests*"
- secure: "Slm+HqRT+Vy0SG7E9gEShuHvNz6XWRUmBhVBLVJEaYy/0Lo2qp4OjFEWDjiJwFIiXstW2Wclds4SuewAn3Tc4x7dsY+5uaMCX7S/HPzsBCjLXUwjKasUqEGaVTIYmtFJm57hOkz6K2SLUUV4intkMiwtCiq/R0xe92QTTKkHyfo="
notifications:
email:
branches:
only:
- master
- dev
- travis
before_install:
- export TRAVIS_PYTHON_VERSION_SHORT=$(echo "${TRAVIS_PYTHON_VERSION}" | cut -d'.' -f-2)
- if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then sudo add-apt-repository ppa:fkrull/deadsnakes -y; fi;
- if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then sudo apt-get update -q; fi;
- if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then sudo apt-get install python${TRAVIS_PYTHON_VERSION_SHORT}-dev; fi;
- if [ "${TRAVIS_PYTHON_VERSION_SHORT}" == "2.7" ]; then pip2 install futures; fi;
- pip install matplotlib || pip2 install matplotlib
- ./.travis/dependencies/eigen-3.2
- if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then CC=gcc CXX=g++ ./.travis/dependencies/ipopt; fi
- ./.travis/run before_install
script:
- export PYTHON_INCLUDE_DIR="`find /usr/include -name Python.h -printf '%h\n' | grep \"python${TRAVIS_PYTHON_VERSION_SHORT}\"`"
- if [ "${TRAVIS_OS_NAME}" == "linux" ]; then export PYTHON_LIBRARY="`find /usr/lib -name \"libpython${TRAVIS_PYTHON_VERSION_SHORT}*.so\" -print -quit`"; fi;
- if [ "${TRAVIS_OS_NAME}" == "osx" ]; then export PYTHON_LIBRARY='#{%x(python-config --prefix).chomp}/lib/libpython2.7.dylib'; fi;
- export CMAKE_ADDITIONAL_OPTIONS="-DPython_ADDITIONAL_VERSIONS=${TRAVIS_PYTHON_VERSION_SHORT} -DPythonLibs_FIND_VERSION=${TRAVIS_PYTHON_VERSION_SHORT} -DPYTHON_EXECUTABLE=${VIRTUAL_ENV}/bin/python -DPYTHON_LIBRARY=${PYTHON_LIBRARY} -DPYTHON_INCLUDE_DIR=${PYTHON_INCLUDE_DIR} -DPYTHON_PACKAGES_PATH=${VIRTUAL_ENV}/lib/python${TRAVIS_PYTHON_VERSION_SHORT}/site-packages/"
- if [ "${TRAVIS_OS_NAME}" == "linux" ]; then export LD_LIBRARY_PATH=`pkg-config --variable=plugindir roboptim-core`:$LD_LIBRARY_PATH; fi
- if [ "${TRAVIS_OS_NAME}" == "osx" ]; then export DYLD_LIBRARY_PATH=`pkg-config --variable=plugindir roboptim-core`:$DYLD_LIBRARY_PATH; fi
- ./.travis/run build
after_success:
# Print Ipopt logs even after success
- . .travis/common.sh
- "find $build_dir/tests -name \"*.log\" | xargs -i sh -c \"echo '####### Printing content of {} ######'; cat {}\""
# Fix for coveralls upload
- export CC=gcc
- ./.travis/run after_success
after_failure: ./.travis/run after_failure
matrix:
allow_failures:
# Known issue with virtualenv
- python: "2.7.6"
- python: "2.7.3"
- os: osx # TODO: Fix ipopt install
include:
- os: linux
dist: trusty
language: python
python: "2.7.6" # Match the system's version
- os: linux
dist: trusty
language: python
python: "3.5.3" # Match the system's version
- os: linux
dist: precise
env: MASTER_PPA="george-edison55/precise-backports"
language: python
python: "2.7.3" # Match the system's version
- os: linux
dist: precise
env: MASTER_PPA="george-edison55/precise-backports"
language: python
python: "3.5.2" # Match the system's version
- os: osx
language: cpp
compiler: clang
env: TRAVIS_PYTHON_VERSION="2.7"