From 88e1e850c0c88855a7dfac787ef0e5c5e4285383 Mon Sep 17 00:00:00 2001 From: Paul Maddox Date: Sat, 9 Mar 2019 14:27:56 +0400 Subject: [PATCH] =?UTF-8?q?fix(CI):=20Update=20TravisCI=20configuration=20?= =?UTF-8?q?based=20on=20https://github.com/se=E2=80=A6=20(#180)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix(CI): Updated TravisCI configuration to work with semantic-release process --- .travis.yml | 33 ++++++++++++++++++++++++++------- 1 file changed, 26 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index 26e908857c..8f33cb4bfb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,19 +12,38 @@ env: install: true -after_success: - # Check for updated CloudFormation resources, and submit a PR - - test "${TRAVIS_EVENT_TYPE}" = "cron" && ./generate/create-pull-request.sh - # - ./generate/create-pull-request.sh +# after_success: +# # Check for updated CloudFormation resources, and submit a PR +# - test "${TRAVIS_EVENT_TYPE}" = "cron" && ./generate/create-pull-request.sh +# # - ./generate/create-pull-request.sh jobs: include: + # Define a stage that will auto-generate CloudFormation resources from the official + # AWS CloudFormation Resource Specification on a daily basis (run via a travis cron) + - stage: regenerate + if: type = cron + script: generate/create-pull-request.sh + # Define the release stage that runs semantic-release - stage: release + language: node_js + node_js: lts/* + before_install: skip + script: + # # Update AUTHORS.md + # - export MAINTAINER_TOKEN=${GH_TOKEN} + # - go get github.com/myii/maintainer + # - maintainer contributor + + # Install all dependencies required for `semantic-release` + - npm install @semantic-release/changelog@3 -D + - npm install @semantic-release/exec@3 -D + - npm install @semantic-release/git@7 -D + deploy: provider: script skip_cleanup: true script: - # Use nvm to install and use the Node LTS version (nvm is installed on all Travis images) - - nvm install lts/* - - npx semantic-release + # Run `semantic-release` + - npx semantic-release@15