Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try fix CI #1261

Merged
merged 5 commits into from
Oct 1, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 11 additions & 24 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ workflows:
jobs:
- test
- test-wasm
- test-win32
- integration-test

jobs:
Expand Down Expand Up @@ -48,9 +47,12 @@ jobs:
steps:
- checkout
- restore_cache:
keys:
keys:
- test-wasm-cache-{{ epoch }}
- test-wasm-cache
- run:
name: Print Rust version
command: |
rustc --version
- run:
name: Build for wasm32
# TODO: also run tests but with --no-run; important to detect linking errors
Expand All @@ -65,37 +67,22 @@ jobs:
- /usr/local/cargo
- /root/.cache/sccache

test-win32:
docker:
- image: tomaka/rust-mingw-docker
steps:
- checkout
- restore_cache:
key: test-win32-cache
- run:
name: Build for Windows 64 bits
command: cargo check --target x86_64-pc-windows-gnu
- run:
name: Build for Windows 32 bits
command: cargo check --target i686-pc-windows-gnu
- save_cache:
key: test-win32-cache
paths:
- "~/.cargo"
- "./target"

integration-test:
docker:
- image: rust
- image: ipfs/go-ipfs
steps:
- checkout
- restore_cache:
key: integration-test-cache
key: integration-test-cache-{{ epoch }}
- run:
name: Print Rust version
command: |
rustc --version
- run:
command: cargo run --example ipfs-kad
- save_cache:
key: integration-test-cache
key: integration-test-cache-{{ epoch }}
paths:
- "~/.cargo"
- "./target"