Unverified Commit 33fb89c5 authored by Erin Swenson-Healey's avatar Erin Swenson-Healey Committed by GitHub
Browse files

fix(paramcache): install from correct branch + disable test run with Darwin (#52)

* fix(paramcache): install from correct branch

* ci(darwin): don't run the tests with darwin - but do verify project builds and links
parent 3addaad0
......@@ -26,7 +26,7 @@ jobs:
- restore_parameter_cache
- obtain_filecoin_parameters
- save_parameter_cache
- test_project
- build_and_run_tests
build_and_test_darwin:
macos:
xcode: "10.0.0"
......@@ -60,7 +60,7 @@ jobs:
- restore_parameter_cache
- obtain_filecoin_parameters
- save_parameter_cache
- test_project
- build_and_compile_tests
workflows:
version: 2
......@@ -100,19 +100,24 @@ commands:
name: Ensure paramcache is installed to project root
command: |
test -f ./paramcache \
|| (rustup run --install nightly cargo install filecoin-proofs --force --git=https://github.com/filecoin-project/rust-fil-proofs.git --branch="feat/election-post" --bin=paramcache --root=./ \
|| (rustup run --install nightly cargo install filecoin-proofs --force --git=https://github.com/filecoin-project/rust-fil-proofs.git --branch=master --bin=paramcache --root=./ \
&& mv ./bin/paramcache ./paramcache)
lint_project:
steps:
- run:
name: Lint project
command: go run github.com/golangci/golangci-lint/cmd/golangci-lint run
test_project:
build_and_run_tests:
steps:
- run:
name: Test project
command: RUST_LOG=info go test -p 1 -timeout 60m
no_output_timeout: 60m
build_and_compile_tests:
steps:
- run:
name: Build project and tests, but don't actually run the tests (used to verify that build/link works with Darwin)
command: RUST_LOG=info go test -run=^$
restore_parameter_cache:
steps:
- restore_cache:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment