Merge pull request #1 from VolodymyrOrlov/circleci-project-setup
Add .circleci/config.yml
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
version: 2
|
||||
|
||||
jobs:
|
||||
build:
|
||||
docker:
|
||||
- image: rust:latest
|
||||
environment:
|
||||
TZ: "/usr/share/zoneinfo/your/location"
|
||||
steps:
|
||||
- checkout
|
||||
- restore_cache:
|
||||
key: project-cache
|
||||
- run:
|
||||
name: Check formatting
|
||||
command: cargo fmt -- --check
|
||||
- run:
|
||||
name: Stable Build
|
||||
command: cargo build
|
||||
- run:
|
||||
name: Test
|
||||
command: cargo test
|
||||
- save_cache:
|
||||
key: project-cache
|
||||
paths:
|
||||
- "~/.cargo"
|
||||
- "./target"
|
||||
Reference in New Issue
Block a user