-
Notifications
You must be signed in to change notification settings - Fork 19
/
.gitlab-ci.yml
53 lines (49 loc) · 1.31 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
variables:
GIT_SUBMODULE_STRATEGY: "recursive"
GIT_DEPTH: "3"
changelog:
stage: test
script:
- git fetch
- FILES_CHANGED=$(git diff --name-only $CI_MERGE_REQUEST_DIFF_BASE_SHA...HEAD)
- |+
for i in $FILES_CHANGED
do
if [[ "$i" == "CHANGELOG.md" ]]
then
exit 0
fi
done
exit 1
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
.proxddp: &proxddp
retry:
max: 2
when: runner_system_failure
except:
- gh-pages
timeout: 3 hours 30 minutes
script:
- export PYTHONPATH="/usr/local/lib/python3/dist-packages:$PYTHONPATH"
- cd $CI_PROJECT_DIR
- git clone --recursive https://[email protected]/Simple-Robotics/proxsuite-nlp.git
- cd proxsuite-nlp
- mkdir build
- cd build
- cmake .. -DCMAKE_BUILD_TYPE=Release -DPYTHON_EXECUTABLE=$(which python3) -DINSTALL_DOCUMENTATION=OFF
- make -j3 install
- cd ../..
- mkdir build
- cd build
- cmake .. -DCMAKE_BUILD_TYPE=Release -DPYTHON_EXECUTABLE=$(which python3) -DINSTALL_DOCUMENTATION=OFF -DBUILD_CROCODDYL_COMPAT=ON
- make -j3 install
- make test
interruptible: true
proxddp-20.04:
tags:
- ci.inria.fr
- large
<<: *proxddp
image: registry.gitlab.inria.fr/jucarpen/pinocchio:pin3x-20.04
allow_failure: false