-
Notifications
You must be signed in to change notification settings - Fork 73
/
.travis.yml
36 lines (34 loc) · 1.63 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
language: rust
jobs:
allow_failures:
- rust: nightly
include:
- env: TEST_CMD=xvfb-run
rust: nightly
- env: TEST_CMD=xvfb-run
rust: 1.40.0
- env: MACOSX_DEPLOYMENT_TARGET=10.7 SKIP_INSTALL=1
rust: 1.40.0
os: osx
before_install: |
[ "x$SKIP_INSTALL" != "x" ] || sudo apt-get -qq update
[ "x$SKIP_INSTALL" != "x" ] || sudo apt-get install -y libgtk-3-dev
script:
- cd ui-sys
- cargo build --verbose --tests --examples
- $TEST_CMD cargo test
- cd ../iui
- cargo build --verbose --tests --examples
- $TEST_CMD cargo test
after_success: |
[ $TRAVIS_BRANCH = trunk] &&
[ $TRAVIS_PULL_REQUEST = false ] &&
cd $TRAVIS_BUILD_DIR/iui/ &&
cargo doc &&
echo "<meta http-equiv=refresh content=0;url=iui/index.html>" > target/doc/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
env:
global:
secure: dfPG6E3lrxnbah17u8S4xJmqFMhrAKoXNxQKGSnEoP3HjZL1NrFFsGCtGbIGPGyz02sCQ3U35nmuGHjUP9SOn+oRV6oQlBx41PPHULoDfsMKojEG80Uphjhd6rCXhdTG10EeIjqK+thNvbhnKXJoSPxe7rIk+r+z4HWHjQhxQuT6i4A6AsjvLGV1UI/WxCzrRFJohnaSyd/jx4/BgBd6XXsHzBvrjYSKSDrrBfJJwqrVchLozD6wSKTaTYdK9CSVGYx8S58Kx2m1j1Hk7FuuC6tqPtOARpwlNOX83p4PUMgZln74QzPN65Y2oYx5dszjflyAf5p264ltDwMLlygDTs92kilRCrznnP1iHgtrO3+aV2jwtRtqXB16JpeYKGFMkRtd3afWZ1SaMjU7s+6tVbSvlXg88GstZPqYYw7B4qYP1BGPX6UGiYMtpqH3Tm1Ne3lX3sPQYDFaV7vkd4JoS05vuHuGU+FERJRmaMAHjz2PCEhcgwnQTzL5LFKTcfNHEFv7NkQ8zPiJ7GELg9n2KnWiRhdB4JGUu8WB1LyYP6j3CQ9NwfBj0VGiH8Urgl9fC3IJnXQW3f284vk0VxBQnSdKILHsvdo8pe6INbDu97XOhzZNIc4jLZRT08aQe5Lk+3e7nGf0CCxFNQSlP6FFN7UP9c/Qvd4M3Ys5atBAryQ=