-
Notifications
You must be signed in to change notification settings - Fork 11
/
.travis.yml
18 lines (17 loc) · 902 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
language: rust
dist: bionic
before_install:
- sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
- sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
- sudo apt-get update
- sudo apt-get -y install ros-melodic-ros-base ros-melodic-tf2-ros ros-melodic-tf2-msgs ros-melodic-tf2-geometry-msgs gfortran
before_script:
- source /opt/ros/melodic/setup.bash
script:
- cargo test
after_success: |
if [ "$TRAVIS_PULL_REQUEST" = "false" -a "$TRAVIS_BRANCH" = "master" ]; then cargo doc \
&& echo '<meta http-equiv=refresh content=0;url=rosrust_tf/index.html>' > target/doc/index.html && \
sudo pip install ghp-import && \
ghp-import -n target/doc && \
git push -qf https://${TOKEN}@github.com/arjo129/rustros_tf.git gh-pages; fi