Let the travis gem format the .travis.yml file
This commit is contained in:
parent
c434e1cd29
commit
35c4ce3348
1 changed files with 66 additions and 75 deletions
25
.travis.yml
25
.travis.yml
|
@ -1,19 +1,16 @@
|
||||||
sudo: false
|
sudo: false
|
||||||
language: rust
|
language: rust
|
||||||
rust:
|
rust:
|
||||||
- beta
|
- beta
|
||||||
- nightly
|
- nightly
|
||||||
- stable
|
- stable
|
||||||
|
|
||||||
cache: cargo
|
cache: cargo
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
allow_failures:
|
allow_failures:
|
||||||
- rust: nightly
|
- rust: nightly
|
||||||
- rust: beta
|
- rust: beta
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- |
|
- |
|
||||||
c=$(git diff $(git merge-base master $TRAVIS_COMMIT)..$TRAVIS_COMMIT --name-only | cut -d "/" -f 1 | uniq)
|
c=$(git diff $(git merge-base master $TRAVIS_COMMIT)..$TRAVIS_COMMIT --name-only | cut -d "/" -f 1 | uniq)
|
||||||
if [[ "$c" == "doc" ]]; then
|
if [[ "$c" == "doc" ]]; then
|
||||||
echo "Only changes in DOC, exiting 0"
|
echo "Only changes in DOC, exiting 0"
|
||||||
|
@ -22,14 +19,12 @@ before_install:
|
||||||
echo "Changes in other directories than ./doc"
|
echo "Changes in other directories than ./doc"
|
||||||
echo "continue build..."
|
echo "continue build..."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- |
|
- |
|
||||||
pip install 'travis-cargo<0.2' --user &&
|
pip install 'travis-cargo<0.2' --user &&
|
||||||
export PATH=$HOME/.local/bin:$PATH
|
export PATH=$HOME/.local/bin:$PATH
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- |
|
- |
|
||||||
travis_cargo_run_in() {
|
travis_cargo_run_in() {
|
||||||
echo ":: Trying to run cargo in $1"
|
echo ":: Trying to run cargo in $1"
|
||||||
[[ -d "$1" ]] &&
|
[[ -d "$1" ]] &&
|
||||||
|
@ -67,26 +62,22 @@ script:
|
||||||
echo -e "--- Done with test scripts ---\n\n"
|
echo -e "--- Done with test scripts ---\n\n"
|
||||||
} || true
|
} || true
|
||||||
done
|
done
|
||||||
|
|
||||||
addons:
|
addons:
|
||||||
apt:
|
apt:
|
||||||
packages:
|
packages:
|
||||||
- libcurl4-openssl-dev
|
- libcurl4-openssl-dev
|
||||||
- libelf-dev
|
- libelf-dev
|
||||||
- libdw-dev
|
- libdw-dev
|
||||||
|
|
||||||
after_success:
|
after_success:
|
||||||
- travis-cargo --only stable doc-upload
|
- travis-cargo --only stable doc-upload
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
email:
|
email:
|
||||||
on_success: never
|
on_success: never
|
||||||
irc:
|
irc:
|
||||||
channels:
|
channels:
|
||||||
- "chat.freenode.net#imag"
|
- chat.freenode.net#imag
|
||||||
template:
|
template:
|
||||||
- "%{repository_name} (%{branch} @ %{commit} by %{author}): %{result}"
|
- "%{repository_name} (%{branch} @ %{commit} by %{author}): %{result}"
|
||||||
|
|
||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
- TRAVIS_CARGO_NIGHTLY_FEATURE=dev
|
- TRAVIS_CARGO_NIGHTLY_FEATURE=dev
|
||||||
|
|
Loading…
Reference in a new issue