53 lines
1.9 KiB
YAML
53 lines
1.9 KiB
YAML
sudo: required
|
|
dist: trusty
|
|
language: rust
|
|
branches:
|
|
only:
|
|
- master
|
|
matrix:
|
|
fast_finish: false
|
|
include:
|
|
- rust: stable
|
|
cache:
|
|
apt: true
|
|
directories:
|
|
- $TRAVIS_BUILD_DIR/target
|
|
- $HOME/.cargo
|
|
addons:
|
|
apt:
|
|
sources:
|
|
- ubuntu-toolchain-r-test
|
|
packages:
|
|
- libcurl4-openssl-dev
|
|
- libelf-dev
|
|
- libdw-dev
|
|
- gcc-4.8
|
|
- g++-4.8
|
|
- oracle-java8-set-default
|
|
script:
|
|
- echo -en 'travis_fold:start:tests'
|
|
- echo Running tests from /tools/test.sh
|
|
- ./tools/test.sh
|
|
- echo -en 'travis_fold:end:tests'
|
|
- echo -en 'travis_fold:start:build.release'
|
|
- echo Building in release mode
|
|
- cargo build --release
|
|
- echo -en 'travis_fold:end:build.release'
|
|
- ./tools/bench.sh
|
|
- ./tools/regtests.sh
|
|
after_success: |
|
|
[ false ] &&
|
|
[ $TRAVIS_BRANCH = master ] &&
|
|
[ $TRAVIS_PULL_REQUEST = false ] &&
|
|
[ $TRAVIS_RUST_VERSION = stable ] &&
|
|
cargo doc --no-deps --verbose &&
|
|
echo '<meta http-equiv=refresh content=0;url=pbtc/index.html>' > target/doc/index.html &&
|
|
pip install --user ghp-import &&
|
|
/home/travis/.local/bin/ghp-import -n target/doc &&
|
|
git push -fq https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages
|
|
env:
|
|
global:
|
|
- CXX="g++-4.8"
|
|
- CC="gcc-4.8"
|
|
- secure: IbTkR3KY7N9e3lc6hreWuY2mhuKyf7k6LSRUMMrOeb1k9TIncYMbR6Sl2W1t5+CJVp7WqVoUbP9YIH8o8a9BBuFldTyAz3tapa908KrZKIRlb/uCTef11z/jzasye4Ttj+358DBrCXZqueFw5Bh5Bnaie3r5bSYWTcQU693Bm/tKFp0lh4fSjzGyk7kRZ4V4rz2YHudZOcNIXN+QfY8aY6dxQraw82GUnNXJLzGiC5GJgeSV1uSnxMUM/lb4+zP1qRlcLBLnwHSTH/3vHH5xsOaRwHEYOQT9pTDyxMnJzDgYfjH4mNu3jSvZ7WFrP+Sza/yR+3sjHpOCFN6rsWc88iTq6Nwp+ESfyjHiLT+jqWs7r57sg2VfwHXuzoEW5GGagrIoF/pDEWJvhtNRYvdYevDtlZYPTfhSR4WOPkMPCg7Ln2W7a7vrSH2iRNxawUDnq3bOIyGGBeGwBJFDOEd6CmP+ojjUUm9L5I4berYACgYEDuZ4bpRX3WpGR1yAhSF4o5BTh+88EWU/VhL2ceXreHlztma3KQ5526Ip46lC4eLFrl/w64zaupesEZFjLsOFm7U9Vx9IM6aqBzOFr8Mt8DlPLaTRmRrbzPRYqHg0MLpHkH8S/HyNbK0xvqbQFRHQ6XPXNJVJXZPz8XPUYWYPK9ayplVdRN9nonHQO7F0gV8=
|