-
Notifications
You must be signed in to change notification settings - Fork 396
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
40 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,43 @@ | ||
# task: | ||
# name: test [ARM] | ||
# arm_container: | ||
# image: rust:1.63.0 | ||
# cpu: 2 | ||
# memory: 8G | ||
# registry_cache: | ||
# folder: $CARGO_HOME/registry | ||
# fingerprint_script: cat Cargo.lock | ||
# target_cache: | ||
# folder: target | ||
# fingerprint_script: | ||
# - rustc --version | ||
# - cat Cargo.lock | ||
# build_script: | ||
# - apt-get update -qqy | ||
# - apt-get install -qqy clang | ||
# - rustup component add clippy rustfmt | ||
# - cargo check --all --locked | ||
# - cargo build --all --locked | ||
# test_script: | ||
# - cargo test --all --locked | ||
# - cargo clippy -- -D warnings | ||
# - cargo fmt --all -- --check | ||
# before_cache_script: rm -rf $CARGO_HOME/registry/index | ||
|
||
|
||
task: | ||
name: test [ARM] | ||
arm_container: | ||
image: rust:1.63.0 | ||
cpu: 8 | ||
memory: 8G | ||
registry_cache: | ||
folder: $CARGO_HOME/registry | ||
fingerprint_script: cat Cargo.lock | ||
target_cache: | ||
folder: target | ||
fingerprint_script: | ||
- rustc --version | ||
- cat Cargo.lock | ||
compute_engine_instance: | ||
image_project: cirrus-images | ||
image: family/docker-builder-arm64 | ||
architecture: arm64 | ||
platform: linux | ||
cpu: 2 | ||
memory: 4G | ||
|
||
name: integration [ARM] | ||
env: | ||
CIRRUS_ARCH: arm64 | ||
build_script: | ||
- apt-get update -qqy | ||
- apt-get install -qqy clang | ||
- rustup component add clippy rustfmt | ||
- cargo check --all --locked | ||
- cargo build --all --locked | ||
- docker build --build-arg=ARCH=aarch64 -f Dockerfile.ci . --rm -t electrs:tests | ||
test_script: | ||
- cargo test --all --locked | ||
- cargo clippy -- -D warnings | ||
- cargo fmt --all -- --check | ||
before_cache_script: rm -rf $CARGO_HOME/registry/index | ||
- docker run -v $PWD/contrib/:/contrib -v $PWD/tests/:/tests --rm electrs:tests bash /tests/run.sh |