Skip to content

Commit

Permalink
Integrate with CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanfrey committed Dec 15, 2020
1 parent dd62fe2 commit a4bcfcd
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 1 deletion.
36 changes: 36 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ workflows:
- contract_cw4_stake
- contract_cw20_atomic_swap
- contract_cw20_base
- contract_cw20_bonding
- contract_cw20_escrow
- contract_cw20_staking
- contract_cw721_base
Expand Down Expand Up @@ -318,6 +319,41 @@ jobs:
- target
key: cargocache-cw20-base-rust:1.47.0-{{ checksum "~/project/Cargo.lock" }}

contract_cw20_bonding:
docker:
- image: rust:1.47.0
working_directory: ~/project/contracts/cw20-bonding
steps:
- checkout:
path: ~/project
- run:
name: Version information
command: rustc --version; cargo --version; rustup --version
- restore_cache:
keys:
- cargocache-cw20-bonding-rust:1.47.0-{{ checksum "~/project/Cargo.lock" }}
- run:
name: Unit Tests
env: RUST_BACKTRACE=1
command: cargo unit-test --locked
- run:
name: Build and run schema generator
command: cargo schema --locked
- run:
name: Ensure checked-in schemas are up-to-date
command: |
CHANGES_IN_REPO=$(git status --porcelain)
if [[ -n "$CHANGES_IN_REPO" ]]; then
echo "Repository is dirty. Showing 'git status' and 'git --no-pager diff' for debugging now:"
git status && git --no-pager diff
exit 1
fi
- save_cache:
paths:
- /usr/local/cargo/registry
- target
key: cargocache-cw20-bonding-rust:1.47.0-{{ checksum "~/project/Cargo.lock" }}

contract_cw20_escrow:
docker:
- image: rust:1.47.0
Expand Down
4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ incremental = false
codegen-units = 1
incremental = false

[profile.release.package.cw20-bonding]
codegen-units = 1
incremental = false

[profile.release.package.cw20-escrow]
codegen-units = 1
incremental = false
Expand Down
2 changes: 1 addition & 1 deletion scripts/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ ALL_PACKAGES="cw1 cw2 cw3 cw4 cw20 cw721"

# these are imported by other contracts
BASE_CONTRACTS="cw1-whitelist cw20-base cw721-base"
ALL_CONTRACTS="cw1-subkeys cw3-fixed-multisig cw3-flex-multisig cw4-group cw4-stake cw20-atomic-swap cw20-escrow cw20-staking"
ALL_CONTRACTS="cw1-subkeys cw3-fixed-multisig cw3-flex-multisig cw4-group cw4-stake cw20-atomic-swap cw20-bonding cw20-escrow cw20-staking"

SLEEP_TIME=30

Expand Down

0 comments on commit a4bcfcd

Please sign in to comment.