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

Upgrade to Substrate 2.0 #218

Merged
merged 20 commits into from
Feb 10, 2020
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
File renamed without changes.
13 changes: 4 additions & 9 deletions ci/script.sh → .maintain/ci/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,33 +2,28 @@

set -eux

# Install rustup and the specified rust toolchain.
curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain=$RUST_TOOLCHAIN -y

# Load cargo environment. Specifically, put cargo into PATH.
source ~/.cargo/env

# Install wasm toolchain
rustup target add wasm32-unknown-unknown

rustup --version
cargo --version
rustc --version

case $TARGET in
# Format check
"rustfmt")
sudo apt-get -y update
sudo apt-get install -y cmake pkg-config libssl-dev
cargo fmt --all
;;

# Unit test
"native")
# Unit test
cargo test --release --all --locked "$@"
;;

# Build test
"wasm")
# Build test
rustup target add wasm32-unknown-unknown
cargo build --locked "$@"
;;
esac
File renamed without changes.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ env:
global:
- RUST_BACKTRACE=1
matrix:
- RUST_TOOLCHAIN=nightly TARGET=rustfmt
- RUST_TOOLCHAIN=stable TARGET=rustfmt
- RUST_TOOLCHAIN=nightly TARGET=wasm
- RUST_TOOLCHAIN=nightly TARGET=native

Expand All @@ -23,7 +23,7 @@ before_install:
- df -h

script:
- ./ci/script.sh
- .maintain/ci/script.sh

after_script:
# Check how much free disk space left after the build
Expand Down
62 changes: 0 additions & 62 deletions CONTRIBUTING.adoc

This file was deleted.

Loading