lemmy/.travis.yml

26 lines
527 B
YAML
Raw Normal View History

2019-04-06 10:54:45 -04:00
language: rust
rust:
- stable
matrix:
allow_failures:
- rust: nightly
fast_finish: true
2019-11-19 18:58:38 -05:00
cache:
directories:
- /home/travis/.cargo
before_cache:
- rm -rf /home/travis/.cargo/registry
2019-04-06 11:27:35 -04:00
before_script:
- psql -c "create user rrr with password 'rrr' superuser;" -U postgres
- psql -c 'create database rrr with owner rrr;' -U postgres
2019-04-06 11:40:32 -04:00
before_install:
2019-04-06 10:57:24 -04:00
- cd server
2019-04-06 11:40:32 -04:00
script:
2019-08-23 23:05:34 -04:00
- diesel migration run
2019-11-19 18:54:00 -05:00
- cargo build
- cargo test
2019-04-06 12:03:55 -04:00
env:
2019-04-06 12:46:31 -04:00
- DATABASE_URL=postgres://rrr:rrr@localhost/rrr
2019-04-06 12:25:18 -04:00
addons:
2019-04-06 13:01:02 -04:00
postgresql: "9.4"