forked from mwallner/rust-wiringpi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (32 loc) · 1.08 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
language: generic
os:
- linux
dist: trusty
sudo: false
# Build for all chains since Rust 1.8.0 (not available for prior versions)
env:
- RUST=nightly
- RUST=beta
- RUST=stable
- RUST=1.12.0
- RUST=1.8.0
# Install rust
install:
- curl https://sh.rustup.rs -sSf | sh -s -- -y
- export PATH="$HOME/.cargo/bin:$PATH"
- rustup toolchain install $RUST
- rustup default $RUST
- rustup target add arm-unknown-linux-gnueabihf
- rustc -V
- cargo -V
- cp scripts/config ~/.cargo/config
- git clone https://github.com/raspberrypi/tools.git ~/pi-tools
- cp scripts/gcc-sysroot ~/pi-tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin
- chmod +x ~/pi-tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/gcc-sysroot
script:
- ./cross64 "build -v"
- ./cross64 "build -v --features orangepi"
- ./cross64 "build -v --example flashing_lights"
- ./cross64 "build -v --features orangepi --example flashing_lights"
- ./cross64 "doc -v"
after_success: curl https://raw.githubusercontent.com/ogeon/travis-doc-upload/master/travis-doc-upload.sh | sh