-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' of https://github.com/skalenetwork/skale-manager…
… into feature/SKALE-2157-fee-check
- Loading branch information
Showing
17 changed files
with
231 additions
and
74 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 |
---|---|---|
|
@@ -21,58 +21,91 @@ node_js: | |
- "10" | ||
os: linux | ||
dist: bionic | ||
env: | ||
- TESTFOLDERS=1 | ||
- TESTFOLDERS=2 | ||
- TESTFOLDERS=3 | ||
addons: | ||
apt: | ||
packages: | ||
- python3-pip | ||
- python3-setuptools | ||
stages: | ||
- lint | ||
- test | ||
- deploy | ||
|
||
jobs: | ||
include: | ||
- stage: lint | ||
script: | ||
- pip3 install -r scripts/requirements.txt | ||
- yarn lint || travis_terminate 1 | ||
- slither --version | ||
- slither . || true | ||
- yarn slither || travis_terminate 5 | ||
- yarn tslint || travis_terminate 2 | ||
|
||
- stage: test | ||
env: | ||
- TESTFOLDERS=1 | ||
script: | ||
- bash scripts/move.sh | ||
- bash scripts/coverage.sh | ||
- stage: test | ||
env: | ||
- TESTFOLDERS=2 | ||
script: | ||
- bash scripts/move.sh | ||
- bash scripts/coverage.sh | ||
- stage: test | ||
env: | ||
- TESTFOLDERS=3 | ||
script: | ||
- bash scripts/move.sh | ||
- bash scripts/coverage.sh | ||
|
||
- stage: deploy | ||
script: | ||
- VERSION=$(BRANCH=$TRAVIS_BRANCH bash ./scripts/calculate_version.sh) | ||
- echo "Version $VERSION" | ||
- export VERSION=$VERSION | ||
- export BRANCH=$TRAVIS_BRANCH | ||
before_deploy: | ||
# Set up git user name and tag this commit | ||
- ( | ||
test ! $TRAVIS_TAG && | ||
git config --local user.name "skale-travis" && | ||
git config --local user.email "$GITHUB_EMAIL" && | ||
export TRAVIS_TAG=$VERSION && | ||
git tag "$TRAVIS_TAG" && | ||
git push https://[email protected]/$TRAVIS_REPO_SLUG.git $TRAVIS_TAG | ||
) || true | ||
deploy: | ||
- provider: releases | ||
api_key: "$GITHUB_OAUTH_TOKEN" | ||
skip_cleanup: true | ||
name: $VERSION @ $(date +'%d.%m.%Y %R') | ||
on: | ||
repo: $TRAVIS_REPO_SLUG | ||
branch: master | ||
- provider: releases | ||
api_key: "$GITHUB_OAUTH_TOKEN" | ||
skip_cleanup: true | ||
prerelease: true | ||
name: $VERSION @ $(date +'%d.%m.%Y %R') | ||
on: | ||
repo: $TRAVIS_REPO_SLUG | ||
branch: | ||
- develop | ||
- beta | ||
- stable | ||
- provider: script | ||
skip_cleanup: true | ||
script: bash $TRAVIS_BUILD_DIR/scripts/build_and_publish.sh | ||
on: | ||
repo: $TRAVIS_REPO_SLUG | ||
branch: | ||
- master | ||
- stable | ||
- develop | ||
- beta | ||
|
||
install: | ||
- yarn install | ||
script: | ||
- yarn generate | ||
- bash scripts/linter.sh | ||
- bash scripts/move.sh | ||
- bash scripts/coverage.sh | ||
before_deploy: | ||
# Set up git user name and tag this commit | ||
- ( | ||
test ! $TRAVIS_TAG && | ||
git config --local user.name "skale-travis" && | ||
git config --local user.email "$GITHUB_EMAIL" && | ||
export TRAVIS_TAG=$VERSION && | ||
git tag "$TRAVIS_TAG" && | ||
git push https://[email protected]/$TRAVIS_REPO_SLUG.git $TRAVIS_TAG | ||
) || true | ||
deploy: | ||
- provider: releases | ||
api_key: "$GITHUB_OAUTH_TOKEN" | ||
skip_cleanup: true | ||
name: $VERSION @ $(date +'%d.%m.%Y %R') | ||
on: | ||
repo: $TRAVIS_REPO_SLUG | ||
branch: master | ||
- provider: releases | ||
api_key: "$GITHUB_OAUTH_TOKEN" | ||
skip_cleanup: true | ||
prerelease: true | ||
name: $VERSION @ $(date +'%d.%m.%Y %R') | ||
on: | ||
repo: $TRAVIS_REPO_SLUG | ||
branch: | ||
- develop | ||
- beta | ||
- stable | ||
- provider: script | ||
skip_cleanup: true | ||
script: bash $TRAVIS_BUILD_DIR/scripts/build_and_publish.sh | ||
on: | ||
repo: $TRAVIS_REPO_SLUG | ||
branch: | ||
- master | ||
- stable | ||
- develop | ||
- beta |
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
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
Oops, something went wrong.