Files
stacks-puppet-node/circle.yml
Gregory Coppola d4db962635 merge: develop -> next (#2828)
* fix: clarify difference between stx-transfer? and (n)ft-transfer?

* build: add Clarity workspace member (#2744)

* build: add libvm workspace member

* chore: skip lib-clarity-vm in circleci

* refactor: address pavi's comment

* refactor: naming

* fix: update lib name

* refactor: rename, drop the lib suffix

* refactor: address Greg's comments

* style: rustfmt

Co-authored-by: Aaron Blankstein <aaron@blockstack.com>

* build: buster -> bullseye in rust testing dockerfiles

* added blank line to restart github tests

* fixed the rstest/clarity interaction

* removed extra line

Co-authored-by: Friedger Müffke <mail@friedger.de>
Co-authored-by: Aaron Blankstein <aaron@blockstack.com>
Co-authored-by: Reed Rosenbluth <331327+reedrosenbluth@users.noreply.github.com>
2021-09-03 16:40:58 -05:00

77 lines
2.5 KiB
YAML

version: 2.1
executors:
docker-publisher:
docker:
- image: circleci/buildpack-deps:stretch
jobs:
test_demo:
working_directory: /test
docker:
- image: rust:1.45-stretch
steps:
- checkout
- run:
command: |
cargo build
- run:
command: |
./target/debug/blockstack-core local initialize db &&
./target/debug/blockstack-core local check sample-contracts/tokens.clar db &&
./target/debug/blockstack-core local launch S1G2081040G2081040G2081040G208105NK8PE5.tokens sample-contracts/tokens.clar db &&
./target/debug/blockstack-core local check sample-contracts/names.clar db &&
./target/debug/blockstack-core local launch S1G2081040G2081040G2081040G208105NK8PE5.names sample-contracts/names.clar db &&
./target/debug/blockstack-core local execute db S1G2081040G2081040G2081040G208105NK8PE5.tokens mint! SZ2J6ZY48GV1EZ5V2V5RB9MP66SW86PYKKQ9H6DPR u100000
- run:
command: |
echo "(get-balance 'SZ2J6ZY48GV1EZ5V2V5RB9MP66SW86PYKKQ9H6DPR)" | ./target/debug/blockstack-core local eval S1G2081040G2081040G2081040G208105NK8PE5.tokens db
unit_tests_with_cov:
machine: true
working_directory: ~/blockstack
steps:
- checkout
- run:
name: Coverage via tarpaulin
command: |
docker run --security-opt seccomp=unconfined -v "${PWD}:/volume" xd009642/tarpaulin \
bash -c "cargo tarpaulin -v --workspace -t 300 -o Xml"
no_output_timeout: 200m
- run:
name: Upload to codecov.io
command: |
bash <(curl -s https://codecov.io/bash)
unit_tests:
docker:
- image: rust:1.40-stretch
working_directory: ~/blockstack
steps:
- checkout
- run:
no_output_timeout: 200m
command: |
cargo test -j 1 --workspace --exclude clarity
all_tests:
docker:
- image: rust:1.40-stretch
working_directory: ~/blockstack
steps:
- checkout
- run:
no_output_timeout: 200m
command: |
cargo test --workspace && cargo test -- --ignored --test-threads 1
workflows:
version: 2
test:
jobs:
- unit_tests
- test_demo
# disable `all_tests` for now, because the circle builder
# OOMs on compile...
# - all_tests:
# filters:
# branches:
# only:
# - master
# - /.*net.*/
# - /.*marf.*/