forked from b-it-bots/mas_industrial_robotics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
36 lines (33 loc) · 1.15 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
variables:
ROS_RELEASE: indigo
REPOSITORY_NAME: mas_industrial_robotics
before_script:
- rm -rf build devel install
- rm -rf $CI_PROJECT_DIR/../src
- rm -rf $CI_PROJECT_DIR/../*.tmp
- source /opt/ros/$ROS_RELEASE/setup.bash
stages:
- build
build:
stage: build
script:
- export ROBOT=youbot-brsu-1
- export ROBOT_ENV=brsu-c025-sim
- git pull [email protected]:mas-group/$REPOSITORY_NAME.git $ROS_RELEASE
- mkdir -p $CI_PROJECT_DIR/../src
- cd $CI_PROJECT_DIR/..
- cp -r $REPOSITORY_NAME src
- mv src $REPOSITORY_NAME
- cd $CI_PROJECT_DIR/src/$REPOSITORY_NAME
- if [ -f repository.debs ]; then ./repository.debs false ; fi
- cd $CI_PROJECT_DIR/src
- git lfs clone -b $ROS_RELEASE [email protected]:mas-group/mas_datasets.git
- cd $CI_PROJECT_DIR
- catkin_make -Dyoubot_driver_ros_interface_USE_SETCAP=OFF
- source $CI_PROJECT_DIR/devel/setup.bash
- catkin_make tests
- catkin_make roslint
- catkin_lint --strict --ignore CRITICAL_VAR_APPEND,LINK_DIRECTORY,ENV_VAR,AMBIGUOUS_BUILD_INCLUDE src/
- catkin_make install
- catkin_make run_tests
- catkin_test_results