forked from giaf/hpipm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
175 lines (166 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
language: c
sudo: required
cache:
ccache: true
jobs:
include:
- name: "Linux AMD64 C build"
arch: amd64
os: linux
dist: bionic
group: travis_latest
addons:
apt:
packages:
- bc
install:
- git clone https://github.com/giaf/blasfeo
- make -C "${TRAVIS_BUILD_DIR}"/blasfeo static_library TARGET=X64_INTEL_HASWELL LA=HIGH_PERFORMANCE -j 4
script:
- make static_library TARGET=AVX BLASFEO_PATH="${TRAVIS_BUILD_DIR}"/blasfeo -j 4
- make -C test_problems test_d_dense TARGET=AVX BLASFEO_PATH="${TRAVIS_BUILD_DIR}"/blasfeo PRINT=0
- make -C test_problems test_d_dense_qcqp TARGET=AVX BLASFEO_PATH="${TRAVIS_BUILD_DIR}"/blasfeo PRINT=0
- make -C test_problems test_d_ocp TARGET=AVX BLASFEO_PATH="${TRAVIS_BUILD_DIR}"/blasfeo PRINT=0
- make -C test_problems test_d_ocp_qcqp TARGET=AVX BLASFEO_PATH="${TRAVIS_BUILD_DIR}"/blasfeo PRINT=0
- make -C test_problems test_d_cond TARGET=AVX BLASFEO_PATH="${TRAVIS_BUILD_DIR}"/blasfeo PRINT=0
- make -C test_problems test_d_cond_qcqp TARGET=AVX BLASFEO_PATH="${TRAVIS_BUILD_DIR}"/blasfeo PRINT=0
- make -C test_problems test_d_part_cond TARGET=AVX BLASFEO_PATH="${TRAVIS_BUILD_DIR}"/blasfeo PRINT=0
- make -C test_problems test_d_part_cond_qcqp TARGET=AVX BLASFEO_PATH="${TRAVIS_BUILD_DIR}"/blasfeo PRINT=0
- make -C test_problems test_d_tree_ocp TARGET=AVX BLASFEO_PATH="${TRAVIS_BUILD_DIR}"/blasfeo PRINT=0
- make -C test_problems test_d_tree_ocp_qcqp TARGET=AVX BLASFEO_PATH="${TRAVIS_BUILD_DIR}"/blasfeo PRINT=0
- name: "Linux ARM64 C build"
arch: arm64
os: linux
dist: bionic
group: travis_latest
addons:
apt:
packages:
- bc
install:
- git clone https://github.com/giaf/blasfeo
- make -C "${TRAVIS_BUILD_DIR}"/blasfeo static_library TARGET=ARMV8A_ARM_CORTEX_A57 LA=HIGH_PERFORMANCE -j 4
script:
- make static_library TARGET=GENERIC BLASFEO_PATH="${TRAVIS_BUILD_DIR}"/blasfeo -j 4
- make -C test_problems test_d_dense TARGET=GENERIC BLASFEO_PATH="${TRAVIS_BUILD_DIR}"/blasfeo PRINT=0
- make -C test_problems test_d_dense_qcqp TARGET=GENERIC BLASFEO_PATH="${TRAVIS_BUILD_DIR}"/blasfeo PRINT=0
- make -C test_problems test_d_ocp TARGET=GENERIC BLASFEO_PATH="${TRAVIS_BUILD_DIR}"/blasfeo PRINT=0
- make -C test_problems test_d_ocp_qcqp TARGET=GENERIC BLASFEO_PATH="${TRAVIS_BUILD_DIR}"/blasfeo PRINT=0
- make -C test_problems test_d_cond TARGET=GENERIC BLASFEO_PATH="${TRAVIS_BUILD_DIR}"/blasfeo PRINT=0
- make -C test_problems test_d_cond_qcqp TARGET=GENERIC BLASFEO_PATH="${TRAVIS_BUILD_DIR}"/blasfeo PRINT=0
- make -C test_problems test_d_part_cond TARGET=GENERIC BLASFEO_PATH="${TRAVIS_BUILD_DIR}"/blasfeo PRINT=0
- make -C test_problems test_d_part_cond_qcqp TARGET=GENERIC BLASFEO_PATH="${TRAVIS_BUILD_DIR}"/blasfeo PRINT=0
- make -C test_problems test_d_tree_ocp TARGET=GENERIC BLASFEO_PATH="${TRAVIS_BUILD_DIR}"/blasfeo PRINT=0
- make -C test_problems test_d_tree_ocp_qcqp TARGET=GENERIC BLASFEO_PATH="${TRAVIS_BUILD_DIR}"/blasfeo PRINT=0
- name: "Linux AMD64 octave build"
arch: amd64
os: linux
dist: bionic
group: travis_latest
addons:
apt:
packages:
- octave
- liboctave-dev
- bc
env:
- HPIPM_MAIN_FOLDER=${TRAVIS_BUILD_DIR}
- BLASFEO_MAIN_FOLDER=${TRAVIS_BUILD_DIR}/blasfeo
- OCTAVE_PATH=$OCTAVE_PATH:$HPIPM_MAIN_FOLDER/interfaces/matlab_octave/
- LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HPIPM_MAIN_FOLDER/lib:$BLASFEO_MAIN_FOLDER/lib
- ENV_RUN=true
- TRAVIS_RUN=true
install:
- git clone https://github.com/giaf/blasfeo
- make -C "${TRAVIS_BUILD_DIR}"/blasfeo shared_library TARGET=X64_INTEL_HASWELL LA=HIGH_PERFORMANCE -j 4
script:
- make shared_library TARGET=AVX BLASFEO_PATH="${TRAVIS_BUILD_DIR}"/blasfeo -j 4
- echo "HPIPM_MAIN_FOLDER=$HPIPM_MAIN_FOLDER"
- echo "BLASFEO_MAIN_FOLDER=$BLASFEO_MAIN_FOLDER"
- echo "OCTAVE_PATH=$OCTAVE_PATH"
- echo "LD_LIBRARY_PATH=$LD_LIBRARY_PATH"
- echo "ENV_RUN=$ENV_RUN"
- make -C interfaces/matlab_octave/ all -j 4
- make -C examples/matlab_octave/ example_getting_started
- make -C examples/matlab_octave/ example_from_qp_data_c
- make -C examples/matlab_octave/ example_mass_spring
- make -C examples/matlab_octave/ example_mass_spring_qcqp
- make -C examples/matlab_octave/ example_getting_started_dense_qp
- name: "Linux AMD64 python build"
arch: amd64
os: linux
dist: bionic
group: travis_latest
addons:
apt:
packages:
- bc
language: python
python: "3.6"
env:
- HPIPM_MAIN_FOLDER=${TRAVIS_BUILD_DIR}
- BLASFEO_MAIN_FOLDER=${TRAVIS_BUILD_DIR}/blasfeo
- LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HPIPM_MAIN_FOLDER/lib:$BLASFEO_MAIN_FOLDER/lib
- PYTHONPATH=$PYTHONPATH:$HPIPM_MAIN_FOLDER/examples/casadi_python/casadi
- ENV_RUN=true
- TRAVIS_RUN=true
install:
- git clone https://github.com/giaf/blasfeo
- make -C "${TRAVIS_BUILD_DIR}"/blasfeo shared_library TARGET=X64_INTEL_HASWELL LA=HIGH_PERFORMANCE -j 4
script:
- make shared_library TARGET=AVX BLASFEO_PATH="${TRAVIS_BUILD_DIR}"/blasfeo -j 4
- echo "HPIPM_MAIN_FOLDER=$HPIPM_MAIN_FOLDER"
- echo "BLASFEO_MAIN_FOLDER=$BLASFEO_MAIN_FOLDER"
- echo "LD_LIBRARY_PATH=$LD_LIBRARY_PATH"
- echo "PYTHONPATH=$PYTHONPATH"
- echo "ENV_RUN=$ENV_RUN"
- make -C interfaces/python/ all
- make -C examples/python/ example_qp_getting_started
- make -C examples/python/ example_qcqp_getting_started
- make -C examples/casadi_python/ get_casadi
- make -C examples/casadi_python/ example_PMSM
- name: "Linux AMD64 cmake build"
arch: amd64
os: linux
dist: bionic
group: travis_latest
addons:
apt:
packages:
- bc
install:
- git clone https://github.com/giaf/blasfeo
- mkdir "${TRAVIS_BUILD_DIR}"/blasfeo/build
- cd "${TRAVIS_BUILD_DIR}"/blasfeo/build
- cmake -DCMAKE_INSTALL_PREFIX="${TRAVIS_BUILD_DIR}"/blasfeo ..
- make -j 4
- make install
script:
- mkdir "${TRAVIS_BUILD_DIR}"/build
- cd "${TRAVIS_BUILD_DIR}"/build
- cmake -DBLASFEO_PATH="${TRAVIS_BUILD_DIR}"/blasfeo ..
- make -j 4
- cd test_problems
- ./d_ocp_qp
- name: "Windows AMD64 cmake build"
os: windows
language: bash
group: travis_latest
install:
- export PATH="/C/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/MSBuild/15.0/Bin":$PATH
- git clone https://github.com/giaf/blasfeo
- mkdir "${TRAVIS_BUILD_DIR}"/blasfeo/build
- cd "${TRAVIS_BUILD_DIR}"/blasfeo/build
- cmake -DTARGET=GENERIC -DCMAKE_INSTALL_PREFIX="${TRAVIS_BUILD_DIR}"/blasfeo ..
- MSBuild.exe blasfeo.vcxproj
- MSBuild.exe INSTALL.vcxproj
script:
- export PATH="/C/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/MSBuild/15.0/Bin":$PATH
- mkdir "${TRAVIS_BUILD_DIR}"/build
- cd "${TRAVIS_BUILD_DIR}"/build
- cmake -DTARGET=GENERIC -DBLASFEO_PATH="${TRAVIS_BUILD_DIR}"/blasfeo ..
- MSBuild.exe hpipm.vcxproj
- cd test_problems
- MSBuild.exe d_ocp_qp.vcxproj
- cd Debug
- ./d_ocp_qp.exe