-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
45 lines (39 loc) · 1.31 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
sudo: required
dist: trusty
language: generic
env:
- ROS_DISTRO=indigo
- ROS_DISTRO=jade
notifications:
email:
on_success: change # [always|never|change], default=change
on_failure: change # [always|never|change], default=always
before_install:
- CI_SOURCE_PATH=$(pwd)
- REPOSITORY_NAME=${PWD##*/}
- echo "Testing branch $TRAVIS_BRANCH of $REPOSITORY_NAME"
install:
- source <(wget -O- https://raw.githubusercontent.com/tue-robotics/tue-env/master/installer/scripts/bootstrap-ros-$ROS_DISTRO)
- tue-get install ros-$REPOSITORY_NAME
- source ~/.tue/setup.bash # source all target setup files
before_script:
# remove the tue-get version of our repo with the travis one
- cd "$TUE_ENV_DIR/repos/https_/github.com/tue-robotics"
- mv "$REPOSITORY_NAME.git" "$REPOSITORY_NAME.old"
- ln -s "$CI_SOURCE_PATH" "$REPOSITORY_NAME.git"
# install travis' package dependencies
- cd "$TUE_SYSTEM_DIR/src"
- rm *
- tue-get update ros-$REPOSITORY_NAME
- ls -l
# go to the catkin workspace
- cd "$TUE_SYSTEM_DIR"
script:
- catkin_make -j2
- catkin_make install # installing the package
- catkin_make tests # build the tests
- catkin_make run_tests # and run them
- roscore >> /dev/null &
- rosrun robot_skills msg_constructors.py
- rosrun robot_skills mockbot.py
- killall roscore