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: ...@@ -26,7 +26,7 @@ jobs:
- restore_parameter_cache - restore_parameter_cache
- obtain_filecoin_parameters - obtain_filecoin_parameters
- save_parameter_cache - save_parameter_cache
- test_project - build_and_run_tests
build_and_test_darwin: build_and_test_darwin:
macos: macos:
xcode: "10.0.0" xcode: "10.0.0"
...@@ -60,7 +60,7 @@ jobs: ...@@ -60,7 +60,7 @@ jobs:
- restore_parameter_cache - restore_parameter_cache
- obtain_filecoin_parameters - obtain_filecoin_parameters
- save_parameter_cache - save_parameter_cache
- test_project - build_and_compile_tests
workflows: workflows:
version: 2 version: 2
...@@ -100,19 +100,24 @@ commands: ...@@ -100,19 +100,24 @@ commands:
name: Ensure paramcache is installed to project root name: Ensure paramcache is installed to project root
command: | command: |
test -f ./paramcache \ 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) && mv ./bin/paramcache ./paramcache)
lint_project: lint_project:
steps: steps:
- run: - run:
name: Lint project name: Lint project
command: go run github.com/golangci/golangci-lint/cmd/golangci-lint run command: go run github.com/golangci/golangci-lint/cmd/golangci-lint run
test_project: build_and_run_tests:
steps: steps:
- run: - run:
name: Test project name: Test project
command: RUST_LOG=info go test -p 1 -timeout 60m command: RUST_LOG=info go test -p 1 -timeout 60m
no_output_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: restore_parameter_cache:
steps: steps:
- restore_cache: - 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