forked from project-march/tutorials
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
76 lines (66 loc) · 2.46 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
# Test build the March tutorials. Author: Isha Dijcks
# Adapted from 'Test build the MoveIt! tutorials'. Original Author: Dave Coleman
sudo: required
dist: xenial
language: ruby
rvm:
- 2.4
python:
- "2.7"
compiler:
- gcc
env:
global:
ROS_DISTRO: kinetic
ROS_CI_DESKTOP: "`lsb_release -cs`"
CI_SOURCE_PATH: "$(pwd)"
ROSINSTALL_FILE: "$CI_SOURCE_PATH/dependencies.rosinstall"
CATKIN_OPTIONS: "$CI_SOURCE_PATH/catkin.options"
ROS_PARALLEL_JOBS: "-j8 -l6"
PYTHONPATH: "$PYTHONPATH:/usr/lib/python2.7/dist-packages:/usr/local/lib/python2.7/dist-packages"
NOKOGIRI_USE_SYSTEM_LIBRARIES: true
BRANCH: $TRAVIS_BRANCH
before_install: # Use this to prepare the system to install prerequisites or dependencies
# Define some config vars
- export NOKOGIRI_USE_SYSTEM_LIBRARIES=true
- export CI_SOURCE_PATH=$(pwd)
- export REPOSITORY_NAME=${PWD##*/}
- echo "Testing branch $TRAVIS_BRANCH of $REPOSITORY_NAME"
- sudo -E sh -c 'echo "deb http://packages.ros.org/ros/ubuntu `lsb_release -cs` main" > /etc/apt/sources.list.d/ros-latest.list'
- wget http://packages.ros.org/ros.key -O - | sudo apt-key add -
- sudo apt-get update -qq
- sudo apt-get install -qq -y python-rosdep python-wstool python-catkin-tools
# Setup rosdep
- sudo rosdep init
- rosdep update
# Install htmlpoofer
- gem update --system
- gem --version
- gem install html-proofer
# Install ROS's version of sphinx
- sudo apt-get -qq install ros-kinetic-rosdoc-lite
- source /opt/ros/kinetic/setup.bash
- pip install pygit2 --user
- pip install sphinx-copybutton --user
#install:
#before_script:
script:
# Test build with non-ROS wrapped Sphinx command to allow warnings and errors to be caught
# Test build with ROS-version of Sphinx command so that it is generated same as ros.org
# Run HTML tests on generated build output to check for 404 errors, etc
- if [ "$TRAVIS_PULL_REQUEST" == "false" ];
then sphinx-build -W -b html . native_build || travis_terminate 1;
rosdoc_lite -o build .;
htmlproofer ./build --only-4xx --check-html --file-ignore ./build/html/genindex.html,./build/html/search.html,./build/html/index-msg.html --alt-ignore '/.*/' --url-ignore '#';
fi
# after_success and deploy are skipped if build is broken
after_success:
# Tell GitHub Pages not to bypass Jekyll processing
- touch build/html/.nojekyll
deploy:
provider: pages
skip-cleanup: true
github-token: $GH_REPO_TOKEN
local_dir: build/html
on:
branch: develop