-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
79 lines (79 loc) · 2.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
dist: trusty
sudo: required
language: python
python:
- 2.7
cache:
directories:
- "~/.platformio"
env:
global:
- ROS_DISTRO=indigo
- ROS_CI_DESKTOP="`lsb_release -cs`"
- CI_SRC_PATH=$(pwd)
before_install:
- sudo sh -c "echo \"deb http://packages.ros.org/ros/ubuntu $ROS_CI_DESKTOP main\"
> /etc/apt/sources.list.d/ros-latest.list"
- wget http://packages.ros.org/ros.key -O - | sudo apt-key add -
- sudo apt-get -qq update
install:
- sudo apt-get install -y ros-$ROS_DISTRO-catkin
- sudo apt-get install -y python-rosdep
- sudo apt-get install -y ros-$ROS_DISTRO-rosbash
- sudo apt-get install -y ros-$ROS_DISTRO-roscpp
- sudo apt-get install -y ros-$ROS_DISTRO-roslib
- sudo apt-get install -y ros-$ROS_DISTRO-rospy
- sudo apt-get install -y ros-$ROS_DISTRO-common-msgs
- sudo apt-get install -y ros-$ROS_DISTRO-topic-tools
- sudo apt-get install -y ros-$ROS_DISTRO-tf
- sudo apt-get install -y ros-$ROS_DISTRO-ackermann-msgs
- pip install -U rospkg
- pip install -U catkin_pkg
- pip install -U empy
- source /opt/ros/$ROS_DISTRO/setup.bash
- sudo rosdep init
- rosdep update
- pip install platformio
before_script:
- mkdir -p ~/catkin_ws/src
- cd ~/catkin_ws/src
- catkin_init_workspace
- git clone https://github.com/ros-drivers/rosserial.git --branch $ROS_DISTRO-devel
- git clone https://github.com/kittcar/kitt_msgs.git
- cd ~/catkin_ws
- catkin_make
- source ~/catkin_ws/devel/setup.bash
- mkdir -p sketchbook/libraries
- export ROSSERIAL_LIB_PATH=$(cd sketchbook/libraries; pwd)
- rosrun rosserial_arduino make_libraries.py $ROSSERIAL_LIB_PATH
- cd src
- git clone https://github.com/kittcar/Catch2.git
- export CATCH2_SINGLE_INCLUDE_DIR=$(cd Catch2/single_include; pwd)
- ln -s $CI_SRC_PATH .
script:
- cd ~/catkin_ws/src/kitt_platform/balor
- platformio run
- cd lib/balor
- mkdir build
- cd build
- cmake ..
- make
- make test
after_failure:
- make check
before_deploy:
- sudo apt-get install -y doxygen
- cd $CI_SRC_PATH
- doxygen
deploy:
provider: s3
access_key_id: $AWS_ACCESS_KEY_ID
secret_access_key: $AWS_SECRET_ACCESS_KEY
bucket: api.kittcar.com
local-dir: "$CI_SRC_PATH/docs"
upload-dir: kitt_platform
skip_cleanup: true
region: $AWS_DEFAULT_REGION
acl: public_read
on:
repo: kittcar/kitt_platform