-
Notifications
You must be signed in to change notification settings - Fork 16
/
.gitlab-ci.yml
33 lines (28 loc) · 1.08 KB
/
.gitlab-ci.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
# Test whether Fatropy can be built
# Official language image. Look for the different tagged releases at:
# https://hub.docker.com/r/library/python/tags/
default:
image: python:3.9
before_script:
- pip install virtualenv
- virtualenv venv
- source venv/bin/activate
build:
script:
# build fatrop and install fatropy
- git submodule update --init --recursive
- apt-get update && apt-get install -y cmake
- export CMAKE_ARGS="-DBLASFEO_TARGET=X64_AUTOMATIC -DENABLE_MULTITHREADING=OFF"
- cd fatropy
- pip install .
# install rockit and rockit-fatrop plugin
- git clone https://gitlab.kuleuven.be/meco-software/rockit.git
- git clone https://gitlab.kuleuven.be/u0110259/rockit_fatrop_plugin.git ./rockit/rockit/external/fatrop
- cd rockit
- pip install .
- cd ../ # return to fatropy root
# test fatropy
- git clone https://gitlab.kuleuven.be/robotgenskill/fatrop/fatrop_rockit_demo.git
- cd tests/
- python ../fatrop_rockit_demo/tutorial.py # solve and generate code
- python example.py # solve using previously generated code