Skip to content
This repository has been archived by the owner on Mar 20, 2020. It is now read-only.

Commit

Permalink
fixed #6
Browse files Browse the repository at this point in the history
  • Loading branch information
jordy25519 committed Aug 29, 2019
1 parent d4d9b80 commit a91870f
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ commands:
if [ ! -d /home/circleci/.cargo ]; then
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
fi
source $HOME/.cargo/env
rustup toolchain install $RUST_VERSION
rustup default $RUST_VERSION
rustup target add wasm32-unknown-unknown --toolchain=$RUST_VERSION
Expand All @@ -22,12 +21,7 @@ commands:
- run:
name: Install sccache
command: |
source $HOME/.cargo/env
cargo install sccache
# Rust use sccache.
echo 'export "RUSTC_WRAPPER"="sccache"' >> $BASH_ENV
# max. space sccache will use on disk.
echo 'export "SCCACHE_CACHE_SIZE"="10G"' >> $BASH_ENV
sccache --version
restore-cache:
steps:
Expand All @@ -50,31 +44,35 @@ jobs:
machine:
image: ubuntu-1604:201903-01
environment:
BASH_ENV: ~/.cargo/env
RUST_VERSION: nightly-2019-07-14
RUSTC_WRAPPER: sccache
SCCACHE_CACHE_SIZE: 10G
steps:
- checkout
- install-rust
# sccache needs to build too
# Could manually unpack and install a release here instead
- restore-cache
- install-sccache
- save-cache
- restore-cache
- run:
name: Build binary
command: |
source $HOME/.cargo/env
cargo build
no_output_timeout: 40m
- save-cache
- restore-cache
- run:
name: Build tests
command: |
source $HOME/.cargo/env
cargo test --all --no-run
no_output_timeout: 40m
- save-cache
- restore-cache
- run:
name: Run tests
command: |
source $HOME/.cargo/env
cargo test --all
no_output_timeout: 40m

0 comments on commit a91870f

Please sign in to comment.