-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
46 lines (41 loc) · 1.54 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
language: rust
cache: cargo
dist: xenial
rust:
- stable
- beta
- nightly
env:
global:
- secure: "GqOVyTWbNFPnnU9/VXj8ddGw/6DCDPbb8CqknioRozCPQ2zvlGZk8WJdUOLxpWmsrwZQdZlqIHOTA0fg+TyTLHPCdDVgDTl24NgGSRf526TFCJdXBKs69ZO5H3OWn94J5X3UUehZeEa/0mA61MapG2wT+4aFBokmXKOOnhZkqKuvMOMouE66HgB7Gl8swcFeRPr3iqDMzM7+JzHLmxIFWXOBn1rv6DvojR3RiIa2/gRdZjqRGG9/SLOrK8b7QoLS0UqmNiyjTSDO9sHvbmlVmOcEAiCQ928af5toqpz8yQjWtCtQoXLZOMyahKmXliTedD/c8xFvRJTuPvFAiDXOItRMcLu/+IWghT3kHEgO8N5alBi7pJoo6qp0oXIVnZs3r+WQ8l2QCYqEnq2OWR4oPTYIl+pLi6pQs1JryYgdTUquSfUFX50ez0jcCh2F/iJTLLafQ0DVyiNwJp3RVc7xrTh3LGC8sw0a2sLewpnP6etSYMq5St3VhhvvlTQ5qq+kFdMv8ZA9oZ1fl5H+OBwwqyRmv+3ROhyKbhgt+yvlxkk91JnjIjAZKRPbaUv7kImCFnk2gZyMIxMCCxq8CIUpPJ10SHlrjeSAUC27lQMMS4AaBVSg1Ztw1yfZwMxID1ueOs5hnmZDPhQJutg9gfs+f0jQ5uouCsyCV423lpMR8so="
script:
- cargo build --verbose --all
- cargo test --verbose --all
matrix:
allow_failures:
- rust: nightly
fast_finish: true
include:
- name: Rustfmt
rust: stable
env:
- SKIP_DEPLOY="yes"
script:
- rustup component add rustfmt-preview
- cargo fmt --all -- --check
- name: Clippy
rust: stable
env:
- SKIP_DEPLOY="yes"
before_script:
- rustup component add clippy-preview
script:
- cargo clippy --all-targets --all-features -- -D warnings
deploy:
# Create new crates.io package
- provider: script
skip_cleanup: true
script: cargo publish --token ${CRATESIO_TOKEN}
on:
condition: x$CRATESIO_TOKEN != 'x' && $TRAVIS_RUST_VERSION = stable && x$SKIP_DEPLOY = 'x'
tags: true