-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
49 lines (49 loc) · 881 Bytes
/
.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
language: rust
rust:
- stable
sudo: false
os:
- linux
addons:
apt:
packages:
- libudev-dev
- libxcb1-dev
- libxcb-dpms0-dev
- libxcb-xtest0-dev
- libxcb-xkb-dev
cache:
directories:
- "$HOME/.cargo"
- target
matrix:
fast_finish: true
allow_failures:
- rust: nightly
env:
matrix:
- CARGO_FEATURES=
- CARGO_DEFAULT_FEATURES=false
global:
- CARGO_QUIET=
before_install:
- curl -L https://github.com/arcnmx/ci/archive/0.2.tar.gz | tar -xzC $HOME && . $HOME/ci-0.2/src
script:
- cd $TRAVIS_BUILD_DIR
- cargo test
- cargo build
deploy:
provider: script
script: 'true'
on:
tags: true
all_branches: true
condition: "$TRAVIS_RUST_VERSION = stable && $CARGO_DEFAULT_FEATURES != false"
before_deploy:
- cd $TRAVIS_BUILD_DIR
- cargo doc
after_deploy:
- cd $TRAVIS_BUILD_DIR
- cargo pages-publish
- cargo package
- cargo publish