forked from casadi/casadi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
33 lines (33 loc) · 1.31 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
env:
global:
- IPOPT_DEFAULT_LINEAR_SOLVER=ma57
- LD_LIBRARY_PATH=/home/travis/build/libhsl
- secure: KvMG4VORV7Ja09shvmsMpiaRMoWqupR76dKxOd7W28I//F4YDIn5ZZefM4aoXsmRgs4G9YqloU8JjVpHutZARmKn2drUwHVMA+96iKb9eDODwZaKXgFYsrQIX5c/OgO8ZpsXynD2daqH3bMK8Mjz1+4fjbFToPFXHggxqQuHm1U=
compiler:
- gcc
- clang
before_install:
- pushd ../../ && git clone https://github.com/casadi/testbot.git
- pushd testbot && recipes/setup.sh && popd
- travis_retry testbot/recipes/fetch.sh libhsl.tar.gz && mkdir libhsl && tar -xvf libhsl.tar.gz -C libhsl
- mkdir -p /home/travis/build/casadi/testbot
- ls -al
- travis_retry testbot/recipes/fetch.sh swig.tar.gz && mkdir swig && tar -xvf swig.tar.gz -C swig
- pushd /home/travis/build/casadi/testbot && ln -s /home/travis/build/swig swig-install && popd
- export PATH=/home/travis/build/swig/bin:$PATH
- popd
- sudo apt-get update -qq
- sudo apt-get install -y gcc g++ gfortran git cmake liblapack-dev ipython python-dev python-numpy python-scipy python-matplotlib coinor-libipopt-dev libmumps-seq-dev libblas-dev liblapack-dev
install:
- mkdir build
- cd build
- cmake -D WITH_PYTHON=ON ..
- make
- sudo make install
python:
- 2.7_with_system_site_packages
script:
- cd ../test
- python -c "from casadi.tools import *;loadAllCompiledPlugins()"
- make unittests_py examples_code_py
language: cpp