-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
56 lines (49 loc) · 2 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
46
47
48
49
50
51
52
53
54
55
56
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"
- sudo pip install codecov
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
- roscd robot_smach_states
- coverage run src/robot_smach_states/util/designators/arm.py
- coverage run --append src/robot_smach_states/util/designators/checks.py
- coverage run --append src/robot_smach_states/util/designators/core.py
- coverage run --append src/robot_smach_states/util/designators/decorators.py
- coverage run --append src/robot_smach_states/util/designators/ed_designators.py
- coverage run --append src/robot_smach_states/util/designators/tests.py
- coverage run --append src/robot_smach_states/util/designators/utility.py
- coverage run --append src/robot_smach_states/human_interaction/human_interaction.py
- coverage run --append src/robot_smach_states/manipulation/manipulation.py
- python -c "import robot_smach_states as states"
after_success:
- codecov