Skip to content

Commit

Permalink
Merge 76ed373 into 20da059
Browse files Browse the repository at this point in the history
  • Loading branch information
fboucquez committed Mar 18, 2021
2 parents 20da059 + 76ed373 commit bc1b05e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ before_script:
- VERSION="$(node_load_version)"
- if [[ ! -z "$DOCKER_USERNAME" ]] ; then echo "${DOCKER_PASSWORD}" | docker login -u "${DOCKER_USERNAME}" --password-stdin; fi
- log_env_variables
- if ! [ -x "$(command -v aws)" ]; then curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" ; unzip awscliv2.zip ; sudo ./aws/install ; fi
- aws s3 ls s3://symbol-bootstrap
script:
- npm pack
- npm test
Expand All @@ -37,14 +39,14 @@ jobs:
name: github alpha pages
script: /bin/bash travis/node-functions.sh node_push_github_pages
if: branch = env(DEV_BRANCH) AND type = push
- name: alpha npm
script: npm pack && /bin/bash travis/node-functions.sh node_publish_alpha
- name: alpha npm - s3
script: npm pack && /bin/bash travis/node-functions.sh node_publish_alpha && npm run dist && npm run publish
if: (branch = env(DEV_BRANCH) AND type = push) OR (type = api AND commit_message = alpha)
- stage: release
name: release npm
script: npm pack && /bin/bash travis/node-functions.sh node_publish_release
name: release npm - s3
script: npm pack && /bin/bash travis/node-functions.sh node_publish_release && npm run dist && npm run publish
if: branch = env(RELEASE_BRANCH) AND type = api AND commit_message = env(RELEASE_MESSAGE)
- stage: post release
name: tag and version upgrade
script: npm pack && /bin/bash travis/node-functions.sh node_post_release
script: npm pack && /bin/bash travis/node-functions.sh node_post_release && npm run dist && npm run publish
if: branch = env(RELEASE_BRANCH) AND type = api AND commit_message = env(RELEASE_MESSAGE)
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@
"coveralls-report": "cat ./coverage/lcov.info | coveralls",
"version": "echo $npm_package_version",
"install-cli": "npm pack && npm i -g",
"publish": "aws s3 cp --recursive ./dist/symbol-bootstrap-* s3://symbol-bootstrap/dist/v$npm_package_version --acl public-read",
"dist": "oclif-dev pack",
"clean-network": "symbol-bootstrap clean -t target/bootstrap-test",
"start-network": "symbol-bootstrap start -t target/bootstrap-test -u 'current'"
},
Expand Down

0 comments on commit bc1b05e

Please sign in to comment.