Skip to content
This repository has been archived by the owner on Oct 17, 2024. It is now read-only.

fix(CI): Update TravisCI configuration based on https://github.com/se… #180

Merged
merged 3 commits into from
Mar 9, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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