Skip to content

Commit

Permalink
feat: Added semantic-release CI setup
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulMaddox committed Mar 9, 2019
1 parent 3b25fdb commit a9b368a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 21 deletions.
8 changes: 1 addition & 7 deletions .releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,6 @@
"changelogTitle": "# Semantic Versioning Changelog"
}
],
[
"@semantic-release/exec",
{
"prepareCmd": "./prepare-release.sh ${nextRelease.version}"
}
],
[
"@semantic-release/git",
{
Expand All @@ -29,7 +23,7 @@
{
"assets": [
{
"path": "dist/**"
"path": "**"
}
]
}
Expand Down
27 changes: 13 additions & 14 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,27 @@ language: go

matrix:
include:
- go: "1.10.x"
script: go test -v ./...
- go: "1.11.x"
script: go test -v -mod=vendor ./...
- go: "1.10.x"
script: go test -v ./...
- go: "1.11.x"
script: go test -v -mod=vendor ./...

env:
- GO111MODULE=on

install: true

after_success:
# Check for updated CloudFormation resources, and submit a PR
# Check for updated CloudFormation resources, and submit a PR
# - test "${TRAVIS_EVENT_TYPE}" = "cron" && ./generate/create-pull-request.sh
- ./generate/create-pull-request.sh

# 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/*
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/*

# # Run semantic-release only on one job, after all other are successful
# - npx travis-deploy-once "npx semantic-release"
# Run semantic-release only on one job, after all other are successful
- npx travis-deploy-once "npx semantic-release"
Empty file added CHANGELOG.md
Empty file.

0 comments on commit a9b368a

Please sign in to comment.