Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move utils, storage-plus, multitest; remove cw1155 stuff #834

Merged
merged 4 commits into from Oct 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
149 changes: 0 additions & 149 deletions .circleci/config.yml
Expand Up @@ -15,28 +15,14 @@ workflows:
- contract_cw4_stake
- contract_cw20_base
- contract_cw20_ics20
- contract_cw1155_base
- package_controllers
- package_utils
- package_cw1
- package_cw2
- package_cw3
- package_cw4
- package_cw20
- package_cw1155
- package_multi_test
- package_storage_plus
- lint
- wasm-build
- benchmarking:
requires:
- package_storage_plus
filters:
branches:
only:
# Long living branches
- main
# 👇Add your branch here if benchmarking matters to your work
- coverage
deploy:
jobs:
Expand Down Expand Up @@ -270,33 +256,6 @@ jobs:
- target
key: cargocache-cw20-ics20-rust:1.58.1-{{ checksum "~/project/Cargo.lock" }}

contract_cw1155_base:
docker:
- image: rust:1.58.1
working_directory: ~/project/contracts/cw1155-base
steps:
- checkout:
path: ~/project
- run:
name: Version information
command: rustc --version; cargo --version; rustup --version
- restore_cache:
keys:
- cargocache-cw1155-base-rust:1.58.1-{{ checksum "~/project/Cargo.lock" }}
- run:
name: Unit Tests
environment:
RUST_BACKTRACE: 1
command: cargo unit-test --locked
- run:
name: Build and run schema generator
command: cargo schema --locked
- save_cache:
paths:
- /usr/local/cargo/registry
- target
key: cargocache-cw1155-base-rust:1.58.1-{{ checksum "~/project/Cargo.lock" }}

package_controllers:
docker:
- image: rust:1.58.1
Expand All @@ -322,31 +281,6 @@ jobs:
- target
key: cargocache-v2-controllers:1.58.1-{{ checksum "~/project/Cargo.lock" }}

package_utils:
docker:
- image: rust:1.58.1
working_directory: ~/project/packages/utils
steps:
- checkout:
path: ~/project
- run:
name: Version information
command: rustc --version; cargo --version; rustup --version; rustup target list --installed
- restore_cache:
keys:
- cargocache-v2-utils:1.58.1-{{ checksum "~/project/Cargo.lock" }}
- run:
name: Build library for native target
command: cargo build --locked
- run:
name: Run unit tests
command: cargo test --locked
- save_cache:
paths:
- /usr/local/cargo/registry
- target
key: cargocache-v2-utils:1.58.1-{{ checksum "~/project/Cargo.lock" }}

package_cw1:
docker:
- image: rust:1.58.1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Independent of this PR, but we should bump to >= 1.59.0

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Definitely! Will do

Expand Down Expand Up @@ -584,89 +518,6 @@ jobs:
name: Check wasm contracts
command: cosmwasm-check ./target/wasm32-unknown-unknown/release/*.wasm

package_multi_test:
docker:
- image: rust:1.58.1
working_directory: ~/project/packages/multi-test
steps:
- checkout:
path: ~/project
- run:
name: Version information
command: rustc --version; cargo --version; rustup --version; rustup target list --installed
- restore_cache:
keys:
- cargocache-v2-multi-test:1.58.1-{{ checksum "~/project/Cargo.lock" }}
- run:
name: Build library for native target
command: cargo build --locked
- run:
name: Run unit tests
command: cargo test --locked
- run:
name: Run unit tests (with iterator)
command: cargo test --locked --features iterator
- save_cache:
paths:
- /usr/local/cargo/registry
- target
key: cargocache-v2-multi-test:1.58.1-{{ checksum "~/project/Cargo.lock" }}

package_storage_plus:
docker:
- image: rust:1.58.1
working_directory: ~/project/packages/storage-plus
steps:
- checkout:
path: ~/project
- run:
name: Version information
command: rustc --version; cargo --version; rustup --version; rustup target list --installed
- restore_cache:
keys:
- cargocache-v2-storage-plus:1.58.1-{{ checksum "~/project/Cargo.lock" }}
- run:
name: Build library for native target (no iterator)
command: cargo build --locked --no-default-features
- run:
name: Run unit tests (no iterator)
command: cargo test --locked --no-default-features
- run:
name: Build library for native target (with iterator and macro)
command: cargo build --locked --all-features
- run:
name: Run unit tests (with iterator and macro)
command: cargo test --locked --all-features
- save_cache:
paths:
- /usr/local/cargo/registry
- target
key: cargocache-v2-storage-plus:1.58.1-{{ checksum "~/project/Cargo.lock" }}

benchmarking:
docker:
- image: rust:1.58.1
environment:
RUST_BACKTRACE: 1
steps:
- checkout:
path: ~/project
- run:
name: Version information (default; stable)
command: rustc --version && cargo --version
- restore_cache:
keys:
- cargocache-v2-benchmarking-rust:1.58.1-{{ checksum "~/project/Cargo.lock" }}
- run:
name: Run storage-plus benchmarks
working_directory: ~/project/packages/storage-plus
command: cargo bench -- --color never --save-baseline
- save_cache:
paths:
- /usr/local/cargo/registry
- target
key: cargocache-v2-benchmarking-rust:1.58.1-{{ checksum "~/project/Cargo.lock" }}

coverage:
# https://circleci.com/developer/images?imageType=machine
machine:
Expand Down