forked from open-i18n/rust-unic
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
61 lines (47 loc) · 1.26 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
language: rust
sudo: false
matrix:
fast_finish: true
include:
# Linux
- rust: nightly
- rust: beta
- rust: stable
- rust: 1.45.0 # = MIN_RUST_VERSION
# MacOS
- os: osx
rust: beta
- os: osx
rust: stable
# Windows
- os: windows
rust: beta
- os: windows
rust: stable
branches:
except:
- staging.tmp
- trying.tmp
notifications:
email:
on_success: never
env:
global:
- RUST_BACKTRACE=full
script:
- cargo build --verbose --workspace
- cargo doc --verbose --workspace --no-deps
- cargo test --verbose --workspace
# unic-ucd-normal is used in unic-ucd with non-default feature
- cargo test --verbose --manifest-path unic/ucd/normal/Cargo.toml
# == Nightly-only ==
- test "$TRAVIS_RUST_VERSION" != "nightly" ||
cargo test --verbose --workspace --all-features
# TODO: - rustdoc --test README.md -L target/debug -L target/debug/deps
# TODO: Enable auto update for gh-pages
#after_success: |
# cargo doc && \
# echo '<meta http-equiv="refresh" content="0;url=YOURLIBNAME/index.html">' > target/doc/index.html && \
# sudo pip install ghp-import && \
# ghp-import -n target/doc && \
# git push -qf https://${GITHUB_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages