-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #621 from Joystream/proposal_discussion_release
Proposal discussion Release into Master
- Loading branch information
Showing
1,155 changed files
with
108,037 additions
and
347 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 |
---|---|---|
@@ -0,0 +1,71 @@ | ||
name: Pioneer | ||
on: [pull_request, push] | ||
|
||
jobs: | ||
pioneer_build_ubuntu: | ||
name: Ubuntu Build | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [12.x] | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- name: build | ||
run: | | ||
yarn install --frozen-lockfile | ||
yarn workspace pioneer build | ||
pioneer_build_osx: | ||
name: MacOS Build | ||
runs-on: macos-latest | ||
strategy: | ||
matrix: | ||
node-version: [12.x] | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- name: build | ||
run: | | ||
yarn install --frozen-lockfile | ||
yarn workspace pioneer build | ||
pioneer_lint_ubuntu: | ||
name: Ubuntu Linting | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [12.x] | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- name: lint | ||
run: | | ||
yarn install --frozen-lockfile | ||
yarn workspace pioneer lint | ||
pioneer_lint_osx: | ||
name: MacOS Linting | ||
runs-on: macos-latest | ||
strategy: | ||
matrix: | ||
node-version: [12.x] | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- name: lint | ||
run: | | ||
yarn install --frozen-lockfile | ||
yarn workspace pioneer lint |
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
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,96 +1,35 @@ | ||
language: rust | ||
|
||
# Caching of the runtime .wasm blob poses a problem. | ||
# See: https://github.com/Joystream/joystream/issues/466 | ||
# Always starting with a clean slate is probably better, it allows us to ensure | ||
# the WASM runtime is always rebuilt. It also allows us to detect when certain upstream dependencies | ||
# sometimes break the build. When cache is enabled do not use the produced WASM build. | ||
# This also means the binary should not be used to produce the final chainspec file (because the same | ||
# one is embedded in the binary) | ||
cache: cargo | ||
|
||
rust: | ||
- 1.43.0 | ||
- stable | ||
|
||
matrix: | ||
include: | ||
- os: linux | ||
env: TARGET=x86_64-unknown-linux-gnu | ||
- os: linux | ||
env: TARGET=arm-unknown-linux-gnueabihf | ||
services: docker | ||
- os: osx | ||
env: TARGET=x86_64-apple-darwin | ||
- os: linux | ||
env: TARGET=wasm-blob | ||
services: docker | ||
|
||
before_install: | ||
install: | ||
- rustup install nightly-2020-05-23 | ||
- rustup target add wasm32-unknown-unknown --toolchain nightly-2020-05-23 | ||
# travis installs rust using rustup with the "minimal" profile so these tools are not installed by default | ||
- rustup component add rustfmt | ||
- cargo fmt --all -- --check | ||
- rustup component add clippy | ||
- BUILD_DUMMY_WASM_BINARY=1 cargo clippy -- -D warnings | ||
- rustup default stable | ||
- rustup update nightly | ||
- rustup target add wasm32-unknown-unknown --toolchain nightly | ||
- cargo test --verbose --all | ||
|
||
install: | ||
- | | ||
if [ "$TARGET" = "arm-unknown-linux-gnueabihf" ] | ||
then | ||
docker pull joystream/rust-raspberry | ||
fi | ||
before_script: | ||
- cargo fmt --all -- --check | ||
|
||
script: | ||
- | | ||
if [ "$TARGET" = "arm-unknown-linux-gnueabihf" ] | ||
then | ||
docker run -u root \ | ||
--volume ${TRAVIS_BUILD_DIR}:/home/cross/project \ | ||
joystream/rust-raspberry \ | ||
build --release | ||
sudo chmod a+r ${TRAVIS_BUILD_DIR}/target/${TARGET}/release/joystream-node | ||
elif [ "$TARGET" = "wasm-blob" ] | ||
then | ||
docker build --tag joystream/node \ | ||
--file ./devops/dockerfiles/node-and-runtime/Dockerfile \ | ||
. | ||
docker create --name temp-container-joystream-node joystream/node | ||
docker cp temp-container-joystream-node:/joystream/runtime.compact.wasm joystream_runtime.wasm | ||
docker rm temp-container-joystream-node | ||
else | ||
cargo build --release --target=${TARGET} | ||
fi | ||
before_deploy: | ||
- | | ||
if [ "$TARGET" = "wasm-blob" ] | ||
then | ||
export ASSET="joystream_runtime.wasm" | ||
else | ||
cp ./target/${TARGET}/release/joystream-node . | ||
if [ "$TARGET" = "arm-unknown-linux-gnueabihf" ] | ||
then | ||
export FILENAME="joystream-node-armv7-linux-gnueabihf" | ||
else | ||
export FILENAME=`./joystream-node --version | sed -e "s/ /-/g"` | ||
fi | ||
tar -cf ${FILENAME}.tar ./joystream-node | ||
gzip ${FILENAME}.tar | ||
export ASSET=${FILENAME}.tar.gz | ||
fi | ||
deploy: | ||
- provider: releases | ||
api_key: | ||
secure: FfxZGQexxAGT0Skbctl1FuqmEvNHejPDPtNG8Du1ACSGjS7Y+M6o/aPqE6HL158AmddOgndsIPR+HM7VfMDAUMkLTbOhv3nMpDBZu1h25vwk+jHOM65tm5LWUu/ROWBpaAQiG7NKrvtfkNfbNBSETsEbWBt/DPrhlIfSbgsXBFDiid7uRrCiwvDUJ097/EUOJ9OVUrk+O4ebSzfIfKPGPtRU2rQQ0eNX7yX3TCm3jbQm/kplkQNRL9mnAJNxtKuvuko4LqZ6jN4XLoLTHUMjO7E0r6wXVB4GVjA4HA214eLlQD6BhgTbWMDxKgWyuKzPG+2GLKyluSSn0RurSl8tYryXKxKxuN3H1FX9r23a8AzGtpRACJtIePC2YmPuQRSnz2Bw8jlSP2WPLJtXGD036J/wVMj6W9TROm7IBigiC7QlqAqCYNByOnoKyhRCgYyAJZb0Jpa3qWaFhA6b6gCGhyH85QCcrc0q6JAB3oqH8Wfm/K2HVzBobmKaSFu5DpwInNnUXnLWGVzhSt3oCq6ld773izReGdLJtLC2vaJ9rZVaVw29s9M662EEuAGgaVLO/sinZJFeIIaCF4i4zUXwXSLIdfKXGOR0ZibkyT2FS6qPGvl/lLN5IREzD7v/rV8htGMLmw4jpPLNskvRjCHX42ewRRYdMvZzQQOAvSlWcsw= | ||
file: ${ASSET} | ||
on: | ||
tags: true | ||
repo: Joystream/joystream | ||
draft: true | ||
overwrite: true | ||
skip_cleanup: true | ||
- provider: releases | ||
api_key: | ||
secure: FfxZGQexxAGT0Skbctl1FuqmEvNHejPDPtNG8Du1ACSGjS7Y+M6o/aPqE6HL158AmddOgndsIPR+HM7VfMDAUMkLTbOhv3nMpDBZu1h25vwk+jHOM65tm5LWUu/ROWBpaAQiG7NKrvtfkNfbNBSETsEbWBt/DPrhlIfSbgsXBFDiid7uRrCiwvDUJ097/EUOJ9OVUrk+O4ebSzfIfKPGPtRU2rQQ0eNX7yX3TCm3jbQm/kplkQNRL9mnAJNxtKuvuko4LqZ6jN4XLoLTHUMjO7E0r6wXVB4GVjA4HA214eLlQD6BhgTbWMDxKgWyuKzPG+2GLKyluSSn0RurSl8tYryXKxKxuN3H1FX9r23a8AzGtpRACJtIePC2YmPuQRSnz2Bw8jlSP2WPLJtXGD036J/wVMj6W9TROm7IBigiC7QlqAqCYNByOnoKyhRCgYyAJZb0Jpa3qWaFhA6b6gCGhyH85QCcrc0q6JAB3oqH8Wfm/K2HVzBobmKaSFu5DpwInNnUXnLWGVzhSt3oCq6ld773izReGdLJtLC2vaJ9rZVaVw29s9M662EEuAGgaVLO/sinZJFeIIaCF4i4zUXwXSLIdfKXGOR0ZibkyT2FS6qPGvl/lLN5IREzD7v/rV8htGMLmw4jpPLNskvRjCHX42ewRRYdMvZzQQOAvSlWcsw= | ||
file: ${ASSET} | ||
on: | ||
branch: development | ||
repo: Joystream/joystream | ||
draft: true | ||
prerelease: true | ||
overwrite: true | ||
skip_cleanup: true | ||
# we set release as build type for all steps to benefit from already compiled packages in prior steps | ||
- BUILD_DUMMY_WASM_BINARY=1 cargo clippy --release --target=${TARGET} -- -D warnings | ||
- BUILD_DUMMY_WASM_BINARY=1 cargo test --release --verbose --all --target=${TARGET} | ||
- TRIGGER_WASM_BUILD=1 WASM_BUILD_TOOLCHAIN=nightly-2020-05-23 cargo build --release --target=${TARGET} -p joystream-node | ||
- ls -l ./target/${TARGET}/release/wbuild/joystream-node-runtime/ |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
@types/react-native | ||
@polkadot/ts/node_modules |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
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
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
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
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,10 +1,10 @@ | ||
#!/bin/sh | ||
set -e | ||
|
||
export BUILD_DUMMY_WASM_BINARY=1 | ||
echo '+cargo test --release --all' | ||
BUILD_DUMMY_WASM_BINARY=1 cargo test --all | ||
|
||
echo '+cargo clippy --release --all -- -D warnings' | ||
BUILD_DUMMY_WASM_BINARY=1 cargo clippy --all -- -D warnings | ||
|
||
echo '+cargo test --all' | ||
cargo test --all | ||
|
||
echo '+cargo clippy --all -- -D warnings' | ||
cargo clippy --all -- -D warnings |
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
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,21 +1,38 @@ | ||
{ | ||
"private": true, | ||
"name": "joystream", | ||
"license": "GPL-3.0-only", | ||
"scripts": { | ||
"test": "yarn && yarn workspaces run test", | ||
"test-migration": "yarn && yarn workspaces run test-migration" | ||
}, | ||
"workspaces": [ | ||
"tests/network-tests" | ||
], | ||
"devDependencies": { | ||
"husky": "^4.2.5" | ||
}, | ||
"husky": { | ||
"hooks": { | ||
"pre-commit": "devops/git-hooks/pre-commit", | ||
"pre-push": "devops/git-hooks/pre-push" | ||
} | ||
} | ||
} | ||
{ | ||
"private": true, | ||
"name": "joystream", | ||
"license": "GPL-3.0-only", | ||
"scripts": { | ||
"test": "yarn && yarn workspaces run test", | ||
"test-migration": "yarn && yarn workspaces run test-migration", | ||
"postinstall": "yarn workspace @joystream/types build", | ||
"cargo-checks": "devops/git-hooks/pre-commit && devops/git-hooks/pre-push", | ||
"cargo-build": "scripts/cargo-build.sh" | ||
}, | ||
"workspaces": [ | ||
"tests/network-tests", | ||
"cli", | ||
"types", | ||
"pioneer", | ||
"pioneer/packages/*" | ||
], | ||
"resolutions": { | ||
"@polkadot/api": "^0.96.1", | ||
"@polkadot/api-contract": "^0.96.1", | ||
"@polkadot/keyring": "^1.7.0-beta.5", | ||
"@polkadot/types": "^0.96.1", | ||
"@polkadot/util": "^1.7.0-beta.5", | ||
"@polkadot/util-crypto": "^1.7.0-beta.5", | ||
"babel-core": "^7.0.0-bridge.0", | ||
"typescript": "^3.7.2" | ||
}, | ||
"devDependencies": { | ||
"husky": "^4.2.5" | ||
}, | ||
"husky": { | ||
"hooks": { | ||
"pre-commit": "devops/git-hooks/pre-commit", | ||
"pre-push": "devops/git-hooks/pre-push" | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
5 |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
module.exports = require('./babel.config.js'); |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
exclude_patterns: | ||
- "**/*.spec.js" | ||
- "**/*.spec.ts" |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
node_modules |
Oops, something went wrong.