Skip to content

Commit

Permalink
fix(CI): Update TravisCI configuration based on https://github.com/se… (
Browse files Browse the repository at this point in the history
awslabs#180)


* fix(CI): Updated TravisCI configuration to work with semantic-release process
  • Loading branch information
PaulMaddox committed Mar 9, 2019
1 parent f51e5ae commit 88e1e85
Showing 1 changed file with 26 additions and 7 deletions.
33 changes: 26 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 88e1e85

Please sign in to comment.