mirror of
https://github.com/diesel-rs/diesel.git
synced 2024-10-04 17:47:17 +03:00
b136f2c4b0
I have no clue why this changes based on the value of `sudo: required`. Without it, Travis uses 3.7. With it, Travis uses 3.8. Fixes #167
60 lines
2.2 KiB
YAML
60 lines
2.2 KiB
YAML
language: rust
|
|
sudo: required
|
|
dist: trusty
|
|
rust:
|
|
- stable
|
|
- beta
|
|
- nightly-2016-01-23
|
|
- nightly
|
|
addons:
|
|
postgresql: '9.4'
|
|
before_script:
|
|
- pip install 'travis-cargo<0.2' --user
|
|
- export PATH=$HOME/.local/bin:$PATH
|
|
- psql -c 'create database diesel_schema;' -U postgres
|
|
script:
|
|
- |
|
|
(cd diesel && travis-cargo build) &&
|
|
(cd diesel && travis-cargo doc) &&
|
|
if [[ "$TRAVIS_RUST_VERSION" == nightly* ]]; then
|
|
(cd diesel && travis-cargo test -- --features "unstable chrono")
|
|
else
|
|
(cd diesel && travis-cargo test -- --features chrono)
|
|
fi &&
|
|
(cd diesel_cli && travis-cargo test) &&
|
|
if [[ "$TRAVIS_RUST_VERSION" == nightly* ]]; then
|
|
(cd diesel_codegen && travis-cargo test -- --no-default-features --features nightly)
|
|
else
|
|
(cd diesel_codegen && travis-cargo test)
|
|
fi &&
|
|
if [[ "$TRAVIS_RUST_VERSION" == nightly* ]]; then
|
|
(cd diesel_tests && travis-cargo test -- --no-default-features --features "unstable $BACKEND")
|
|
else
|
|
(cd diesel_tests && travis-cargo test -- --features $BACKEND)
|
|
fi
|
|
env:
|
|
matrix:
|
|
- BACKEND=sqlite
|
|
- BACKEND=postgres
|
|
global:
|
|
- DATABASE_URL=postgres://postgres@localhost/
|
|
- TRAVIS_CARGO_NIGHTLY_FEATURE=""
|
|
- secure: NmCM1VNEzid6bROA7tXV1R63n9S9KvY1etXsDzd1608cvjRnG3ZDAWXISbY1BxqrvleElreUJOvz/3TSQCHivpT2ezeyk2sntYtZpw0TWbz1SQMAPNWPTjP3bNQzpmNwfU4p6ui6qIOnQza4JxOu3SZSveNlehDBPkkS+52R7Zw/EPdwi9jTYJArV2+8pnEsQECAdRLttbtA2JBl3hZ4VHfGpHRZyeULn63UzyVbQVzQ3NVhqyQUKTPdpUciQTI3fZEkfaWuLV8QPPa5026/yJEEi2Fsl3r7fyY8ia67k4Zo9THlPVD0YOUlkWuZWwvkxNA8RQSVPv4FidEpwbxG8y6nAra4CjwiEChcpFhZJtrH7ZrXO/tJk7vtc5CFVWUsQtNX92QY1QFdPxwYNBSICLyUN+A+BQURwvQgxdcJsJyQmh5Ed7yuavcAinVq7fPeOyBWcPL5mt17no16aG1rzvXSUnD0aH7F3S3DHkoM9P9iHgJMLk+2YNmJtFescBxCeG8bA7t5bw0kQNH5KUWAD1uYpC9ikB3NVdlc+q17dKTAe4rcYA+sIO+UGudvpmLWT0lXtEMqDfxfCmyICDESs9bNfueCGJEAnfTBNunsJqR7rMUvjNndS2/Ssok6c/0Yfb9X8cM9nI4QLAj/+hClqdYphmpCjuC34bWxFSt/KJI=
|
|
matrix:
|
|
allow_failures:
|
|
- rust: nightly
|
|
after_success:
|
|
- "(cd diesel && travis-cargo --only stable doc-upload)"
|
|
branches:
|
|
only:
|
|
- master
|
|
- ಠ_ಠ
|
|
- diesel-sqlite-support
|
|
notifications:
|
|
webhooks:
|
|
urls:
|
|
- https://webhooks.gitter.im/e/1d32e0ad32841bd56b02
|
|
on_success: change
|
|
on_failure: always
|
|
on_start: never
|