-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
58 lines (47 loc) · 1.7 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
branches:
only:
- testing
except:
- master
dist: focal
#dist: bionic
# setting lbg/ubg works fine with bionic + MATLAB R2020a, not with focal + MATLAB R2021a (latest, default)
# this is only required to install MATLAB such that we
# have access to HSL on the machine
language: python
addons:
apt_packages:
- gfortran
git:
submodules: false
before_install:
- openssl aes-256-cbc -K $encrypted_8ebb1ef83f64_key -iv $encrypted_8ebb1ef83f64_iv -in github_deploy_key.enc -out github_deploy_key -d
- chmod 600 github_deploy_key
- eval $(ssh-agent -s)
- ssh-add github_deploy_key
- git submodule update --init
- sudo apt-get -y install python3-pip
- sudo apt-get -y install python3-setuptools
# ONLY FOR FOCAL
# - sudo apt-get update
- sudo apt-get install libgfortran5
- sudo apt-get install liblapack-dev
- sudo apt-get install libblas-dev
- pushd external/coin_hsl_source && ./configure && make && popd
# ONLY FOR BIONIC
# - sudo apt-get install libgfortran3
install:
- python3 -m pip install -e .
- export LD_LIBRARY_PATH=$(pwd)/external/qpOASES/bin:$LD_LIBRARY_PATH
- export LD_LIBRARY_PATH=$(pwd)/external/casadi/installation/lib:$LD_LIBRARY_PATH
- export LD_LIBRARY_PATH=$(pwd)/external/coin_hsl_source/.libs/:$LD_LIBRARY_PATH
- pushd test
# - matlab -batch "fileID = fopen('matlab_root_path.txt','w'); fprintf(fileID,'%s', matlabroot); fclose(fileID);"
- python3 install_dependencies.py
# - export LD_LIBRARY_PATH=$(<matlab_root_path.txt)/bin/glnxa64:$LD_LIBRARY_PATH
- export LD_LIBRARY_PATH=$(pwd)/fsqp_solver:$LD_LIBRARY_PATH
- echo $LD_LIBRARY_PATH
- pwd
- ls
script:
- python3 test.py