-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.travis.yml
More file actions
28 lines (22 loc) · 771 Bytes
/
Copy path.travis.yml
File metadata and controls
28 lines (22 loc) · 771 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
language: rust
rust:
- stable
- nightly
matrix:
fast_finish: true
services:
- postgresql
addons:
postgresql: "9.6"
before_install:
- sudo apt-get update
- sudo apt-get install libusb-1.0-0 libusb-1.0-0-dev
env:
- DATABASE_URL=postgres://stokepile:stokepile@localhost/stokepile_web
before_script:
- psql -c "CREATE USER stokepile PASSWORD 'stokepile';" -U postgres
- psql -c "CREATE DATABASE stokepile_web OWNER stokepile;" -U postgres
script:
- if [ "$TRAVIS_RUST_VERSION" = "nightly" ]; then cargo build --features web; else cargo build; fi
- if [ "$TRAVIS_RUST_VERSION" = "nightly" ]; then cargo run --features web --bin run_migrations; fi
- if [ "$TRAVIS_RUST_VERSION" = "nightly" ]; then cargo test --features web; else cargo test; fi