This repository has been archived by the owner on Apr 21, 2021. It is now read-only.
forked from ramn/rusoto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
59 lines (58 loc) · 1.83 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
sudo: required
dist: trusty
language: rust
# cache dependencies: https://docs.travis-ci.com/user/caching/#Rust-Cargo-cache
cache: cargo
# run builds for all the trains (and more)
rust:
- 1.23.0 # test against minimum Rust version supported
- stable
- beta
- nightly
os:
- linux
- osx
cache:
directories:
- $HOME/.cargo
before_install:
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then ulimit -n 1024; fi
- rustup install nightly
script:
- |
echo "Generating service crates..." &&
( cd service_crategen && \
cargo +nightly run -- generate -c ./services.json -o ../rusoto/services )
- echo "Running Rusoto tests" && cargo update && cargo test --lib --all -v
- |
echo "Building integration tests" &&
( cd integration_tests && \
cargo check --tests --features "all" )
- |
echo "Running cargo docs on stable Rust on Linux" &&
if [[ "$TRAVIS_OS_NAME" == "linux" && "$TRAVIS_RUST_VERSION" == "stable" ]]; then
cargo doc --all --no-deps
fi
after_success:
# upload the documentation from the build if it's from Rust stable, Linux and not a pull request:
- |
if [[ "$TRAVIS_OS_NAME" == "linux" && "$TRAVIS_RUST_VERSION" == "stable" && "$TRAVIS_PULL_REQUEST" == false ]]; then
echo '<meta http-equiv=refresh content=0;url=rusoto_core/index.html>' > target/doc/index.html \
&& mkdir target/doc/rusoto/ && echo '<meta http-equiv=refresh content=0;url=../rusoto_core/index.html>' > target/doc/rusoto/index.html \
&& sudo pip install ghp-import && ghp-import -n target/doc \
&& git push -fq https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages \
&& cd ..
fi
env:
global:
- RUST_BACKTRACE=1
branches:
only:
- master
- auto
notifications:
email: false
matrix:
fast_finish: true
allow_failures:
- rust: nightly