Skip to content

Commit

Permalink
Merge pull request #1904 from input-output-hk/custom-circle-ci-image
Browse files Browse the repository at this point in the history
Use custom CircleCI image
  • Loading branch information
NicolasDP authored Mar 11, 2020
2 parents b791928 + 5f0e997 commit 6ae562a
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 41 deletions.
35 changes: 18 additions & 17 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ version: 2
jobs:
cargo_fetch:
docker:
- image: rust:latest
working_directory: /mnt/crate
- image: inputoutput/rust:stable
working_directory: /home/circleci/project
steps:
- checkout
- run: git submodule sync
Expand All @@ -22,34 +22,35 @@ jobs:

cargo_audit:
docker:
- image: rust:latest
working_directory: /mnt/crate
- image: inputoutput/rust:stable
working_directory: /home/circleci/project
steps:
- checkout
- run: git submodule sync
- run: git submodule update --init
- restore_cache:
keys:
- cargo-v3-{{ checksum "Cargo.toml" }}-{{ checksum "Cargo.lock" }}
- run:
name: Install Cargo Audit
command: cargo install cargo-audit
- restore_cache:
keys:
- cargo-advisory-db-v1
- run:
name: Print Cargo Audit Version
command: cargo audit --version
- run:
name: Check Cargo Audit
command: cargo audit
- save_cache:
key: cargo-advisory-db-v1
paths:
- /usr/local/cargo/advisory-db

rustfmt:
docker:
- image: rust:latest
working_directory: /mnt/crate
- image: inputoutput/rust:stable
working_directory: /home/circleci/project
steps:
- checkout
- run:
name: Install rustfmt
command: rustup component add rustfmt
- run:
name: Print version information
command: cargo fmt -- --version
Expand All @@ -59,10 +60,10 @@ jobs:

test_debug:
docker:
- image: rust:latest
- image: inputoutput/rust:stable
environment:
CARGO_INCREMENTAL: 0
working_directory: /mnt/crate
working_directory: /home/circleci/project
steps:
- checkout
- run: git submodule sync
Expand All @@ -87,8 +88,8 @@ jobs:

test_release:
docker:
- image: rust:latest
working_directory: /mnt/crate
- image: inputoutput/rust:stable
working_directory: /home/circleci/project
steps:
- checkout
- run: git submodule sync
Expand All @@ -114,7 +115,7 @@ jobs:
- image: instrumentisto/rust:beta
environment:
CARGO_INCREMENTAL: 0
working_directory: /mnt/crate
working_directory: /home/circleci/project
steps:
- checkout
- run: git submodule sync
Expand Down
12 changes: 0 additions & 12 deletions docker/ci/Dockerfile.nightly

This file was deleted.

12 changes: 0 additions & 12 deletions docker/ci/Dockerfile.release

This file was deleted.

0 comments on commit 6ae562a

Please sign in to comment.