-
-
Save matthewjberger/a771994897108d293ea9aa2f5c1feb22 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