From 9e782cb36a6dcd3d0f508122f4c15582f53926a1 Mon Sep 17 00:00:00 2001 From: VolodymyrOrlov Date: Fri, 5 Jun 2020 17:47:05 -0700 Subject: [PATCH] Add .circleci/config.yml --- .circleci/config.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..c83a999 --- /dev/null +++ b/.circleci/config.yml @@ -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"