2019-06-30 22:30:54 +02:00
|
|
|
version: 2
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
docker:
|
|
|
|
- image: circleci/rust:1.35-stretch
|
|
|
|
working_directory: ~/repo
|
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- run:
|
|
|
|
name: install dependencies
|
|
|
|
command: |
|
|
|
|
cargo build
|
2019-07-07 23:54:21 +02:00
|
|
|
cargo install diesel_cli
|
2019-07-07 23:58:28 +02:00
|
|
|
diesel migration run --database-url=test.db
|
2019-06-30 22:30:54 +02:00
|
|
|
- run:
|
|
|
|
name: run test suite
|
|
|
|
command: |
|
|
|
|
cargo test
|
|
|
|
|
|
|
|
workflows:
|
|
|
|
version: 2
|
|
|
|
format_and_test:
|
|
|
|
jobs:
|
|
|
|
- test
|