-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
69 lines (61 loc) · 1.91 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
language: rust
services: docker
sudo: required
cache: cargo
addons:
apt:
packages:
# This is required for coveralls
- libcurl4-openssl-dev
- libelf-dev
- libdw-dev
- binutils-dev
- cmake
sources:
- kalakris-cmake
# This is a pretty big hack and only really needed on the first of a build chain
before_script:
- (cargo install cargo-travis | true) &&
(cargo install cross | true) && export PATH=$HOME/.cargo/bin:$PATH
# Build, test, benchmark, document. Gogogogo!
script:
- |
cross build --target armv7-unknown-linux-gnueabihf
cross test --verbose --all --target armv7-unknown-linux-gnueabihf
# - |
# # Firstly build sans-core by itself
# (cd sans-core && cargo build --verbose --all) &&
# (cd sans-core && cargo test --verbose --all) &&
# (cd sans-core && cargo bench --all) &&
# (cd sans-core && cargo doc) &&
# # Build sans-server
# (cd sans-server && cargo build --verbose --all) &&
# (cd sans-server && cargo test --verbose --all) &&
# (cd sans-server && cargo bench --all) &&
# (cd sans-server && cargo doc) &&
# # Build sans-worker
# (cd sans-worker && cargo build --verbose --all) &&
# (cd sans-worker && cargo test --verbose --all) &&
# (cd sans-worker && cargo bench --all) &&
# (cd sans-worker && cargo doc) &&
# # Clippy checking
# (cd sans-server && cargo test --all --features nightly) &&
# (cd sans-server && cargo clippy --all -- -D warnings) &&
# # Do a formatter run
# cargo fmt --all -- --write-mode=diff
matrix:
include:
# Pin nightly for rocket
- rust: nightly-2018-04-30
env:
- RUSTFMT=yes_please
- PKG_CONFIG_ALLOW_CROSS=1
install: rustup component add rustfmt-preview
# Upload the whole mess
# after_success:
# - cargo coveralls --verbose
# AND GOD DAMN IT LET ME SLEEP!
notifications:
email:
on_success: never
on_failure: never