added ci configuration

This commit is contained in:
Gonçalo Valério 2019-06-30 21:30:54 +01:00
parent c90438d667
commit dad2993123
1 changed files with 29 additions and 0 deletions

29
.circleci/config.yml Normal file
View File

@ -0,0 +1,29 @@
version: 2
jobs:
test:
docker:
- image: circleci/rust:1.35-stretch
working_directory: ~/repo
steps:
- checkout
- restore_cache:
keys:
- v1-dependencies-{{ checksum "Cargo.lock" }}
- run:
name: install dependencies
command: |
cargo build
- save_cache:
paths:
- ~/.cargo
key: v1-dependencies-{{ checksum "Cargo.lock" }}
- run:
name: run test suite
command: |
cargo test
workflows:
version: 2
format_and_test:
jobs:
- test