This repository has been archived by the owner on May 3, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
/
.travis.yml
62 lines (54 loc) · 1.55 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
language: rust
sudo: false
cache: cargo
addons:
apt:
update: true
packages:
- valgrind
env:
- RUST_BACKTRACE=full
script:
- cargo build --all --verbose
- cargo test --all --verbose
- cargo test --all --verbose --all-features
# Run test with feature flags in subdir as cargo does not support feature
# flags in virtual workspace
- cd libsignal-protocol
- cargo test --all --verbose --no-default-features --features="crypto-openssl"
- cargo test --all --verbose --no-default-features --features="crypto-native"
- cd ..
- cargo doc --all --verbose
# Check that the (non-blacklisted) examples and tests don't have memory bugs
- python3 ./scripts/valgrind.py
before_deploy:
- cargo doc --all --verbose
- echo '<meta http-equiv="refresh" content="0; url=libsignal_protocol/index.html" /> ' > target/doc/index.html
- cp -r target/doc public
matrix:
fast_finish: true
# Uncomment the following lines whenever clippy fails to install on nightly
allow_failures:
- name: "Code Style"
include:
- rust: stable
- rust: 1.34.0
- rust: nightly
- rust: nightly
name: "Code Style"
before_script:
- rustup component add rustfmt
- rustup component add clippy
script:
- cargo fmt --all -- --check
- cargo clippy -- -D clippy::all
deploy:
provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
keep_history: true
local_dir: public
on:
branch: master
# nightly gives us better docs (intra-doc links)
condition: "$TRAVIS_RUST_VERSION == nightly"