Skip to content

Instantly share code, notes, and snippets.

@matthewjberger
Forked from huytd/.travis.yml
Created September 25, 2017 04:12
Show Gist options
  • Save matthewjberger/a771994897108d293ea9aa2f5c1feb22 to your computer and use it in GitHub Desktop.
Save matthewjberger/a771994897108d293ea9aa2f5c1feb22 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