-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
47 lines (45 loc) · 1.06 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
language: rust
sudo: required
script:
- sudo unlink /usr/bin/gcc && sudo ln -s /usr/bin/gcc-5 /usr/bin/gcc
- gcc --version
- cargo test
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-5
alternatives:
- alternative:
name: gcc
link: /usr/bin/gcc
path: /usr/bin/gcc-5
priority: 80
rust:
- stable
matrix:
fast_finish: true
cache : cargo
env : RUSTFLAGS="$RUSTFLAGS -D warnings"
before_deploy:
- rustup install nightly
- cargo +nightly doc
- cp -r target/doc public/
- pwd
- ls
- echo "<meta http-equiv=refresh content=0;url=librobot/index.html>" > public/index.html
- echo $GITHUB_TOKEN
deploy:
provider: pages
skip-cleanup: true
github-token: $GITHUB_TOKEN
keep-history: false
local-dir: public
target-branch: gh-pages
repo: ClubRobotInsat/librobot
project-name: Documentation Librobot
on:
branch: master
notifications:
email: false