-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
102 lines (89 loc) · 2.32 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
sudo: false
language: rust
env:
global:
- CRATE_NAME=cobalt-migrate-jekyll
matrix:
include:
# Linux
- env: TARGET=x86_64-unknown-linux-gnu
# OSX
- env: TARGET=x86_64-apple-darwin
os: osx
# Testing other channels
- env: TARGET=x86_64-unknown-linux-gnu
rust: beta
- env: TARGET=x86_64-unknown-linux-gnu
rust: nightly
- env: COVERALLS=0.0.9
install:
- travis_wait cargo install cargo-travis --force --vers $COVERALLS
script:
- cmake --version
- cargo coverage || true
- env: RUSTFMT
rust: 1.28.0 # `stable`: Locking down for consistent behavior
install:
- rustup component add rustfmt-preview
script:
- cargo fmt -- --check
- env: RUSTFLAGS="-D warnings"
rust: 1.28.0 # `stable`: Locking down for consistent behavior
install:
script:
- cargo check --tests
- env: CLIPPY
rust: nightly-2018-07-17
install:
- rustup component add clippy-preview
script:
- cargo clippy --all-features -- -D clippy
install:
- rustc -Vv
- cargo -V
- curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain $TRAVIS_RUST_VERSION
- source ~/.cargo/env || true
script:
- cargo test --verbose
- cargo test --verbose --no-default-features
before_deploy:
- sh ci/before_deploy.sh
branches:
only:
# Release tags
- /^v\d+\.\d+\.\d+.*$/
- master
deploy:
provider: releases
api_key:
secure: "R4P4oXBODF9LZW/ht2putfF4tg74aOjWVRZWu7ia4ORdpEQ++RkgO32SQLZsLeXsJbb/qbTa06FfD6MC8MWdmek4DvwlSAiHrykVyio3BCv4RHmeBtaIhmp0L7n608tDeoJZFXE08JkDtR6rS8OiQw1jt6GuNAVGYk7/Rhgpujo="
file_glob: true
file: $CRATE_NAME-$TRAVIS_TAG-$TARGET.*
on:
condition: $TRAVIS_RUST_VERSION = stable
tags: true
skip_cleanup: true
addons:
apt:
packages:
# necessary for `cargo coveralls`
- libcurl4-openssl-dev
- libelf-dev
- libdw-dev
- binutils-dev
- cmake
cache:
apt: true
cargo: true
before_cache:
# Travis can't cache files that are not readable by "others"
- chmod -R a+r $HOME/.cargo
notifications:
email:
on_success: never
webhooks:
urls:
- https://webhooks.gitter.im/e/7e08f15b115326957c31
on_success: change # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: never # options: [always|never|change] default: always