-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
57 lines (52 loc) · 1.21 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
54
55
56
# workflow:
# rules:
# - if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
# - if: '$CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS'
# when: never
# - if: '$CI_COMMIT_BRANCH'
variables:
GIT_STRATEGY: clone
GIT_SUBMODULE_STRATEGY: normal
stages:
- build
- test
nightly_linux:
image: onet/lidar:ros_melodic
only:
- schedules
tags:
- ros
stage: build
before_script:
- eval $(ssh-agent -s)
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
- ssh-keyscan -t rsa -p 2222 192.168.10.1 >> ~/.ssh/known_hosts
script:
- rm -rf build devel
- catkin_make
- roscore &
- roscore_pid=$!
- catkin_make run_tests
- kill $roscore_pid
build_linux:
image: onet/lidar:ros_melodic
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
stage: build
tags:
- ros
before_script:
- eval $(ssh-agent -s)
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
- ssh-keyscan -t rsa -p 2222 192.168.10.1 >> ~/.ssh/known_hosts
script:
- rm -rf build devel
- catkin_make
- roscore &
- roscore_pid=$!
- catkin_make run_tests
- kill $roscore_pid