Last active
November 24, 2017 16:03
-
-
Save huytd/8438a0d3fe1510a483a0499e63a07925 to your computer and use it in GitHub Desktop.
Travis CI config for Rust/Diesel project
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
language: rust | |
rust: | |
- nightly | |
cache: cargo | |
services: | |
- postgresql | |
before_script: | |
- psql -c 'create database build_db;' -U postgres | |
- echo "DATABASE_URL=postgres://postgres@localhost/build_db" > .env | |
- cargo install diesel_cli --no-default-features --features=postgres | |
- diesel migration run | |
script: | |
- cargo build --verbose --all | |
- cargo test --verbose --all |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment