Skip to content

Instantly share code, notes, and snippets.

@huytd
Last active November 24, 2017 16:03
Show Gist options
  • Save huytd/8438a0d3fe1510a483a0499e63a07925 to your computer and use it in GitHub Desktop.
Save huytd/8438a0d3fe1510a483a0499e63a07925 to your computer and use it in GitHub Desktop.
Travis CI config for Rust/Diesel project
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