Skip to content

Commit

Permalink
ci(travis): apply changes from build config validation [skip ci]
Browse files Browse the repository at this point in the history
* Automated using myii/ssf-formula#98
  • Loading branch information
myii committed Nov 16, 2019
1 parent 883ac7e commit df299f6
Showing 1 changed file with 23 additions and 16 deletions.
39 changes: 23 additions & 16 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,20 @@
# vim: ft=yaml
---
## Machine config
dist: bionic
os: 'linux'
arch: 'amd64'
dist: 'bionic'
version: '~> 1.0'

## Language and cache config
language: 'ruby'
cache: 'bundler'

## Stages and jobs matrix
stages:
- test
- name: release
if: branch = master AND type != pull_request
- name: 'release'
if: 'branch = master AND type != pull_request'
jobs:
allow_failures:
- env: Lint_rubocop
Expand All @@ -18,11 +24,11 @@ jobs:
## Define the test stage that runs the linters (and testing matrix, if applicable)

# Run all of the linters in a single job (except `rubocop`)
- language: node_js
node_js: lts/*
env: Lint
- language: 'node_js'
node_js: 'lts/*'
env: 'Lint'
name: 'Lint: salt-lint, yamllint & commitlint'
before_install: skip
before_install: 'skip'
script:
# Install and run `salt-lint`
- pip install --user salt-lint
Expand All @@ -49,12 +55,12 @@ jobs:
- rubocop -d

## Define the release stage that runs `semantic-release`
- stage: release
language: node_js
node_js: lts/*
env: Release
- stage: 'release'
language: 'node_js'
node_js: 'lts/*'
env: 'Release'
name: 'Run semantic-release inc. file updates to AUTHORS, CHANGELOG & FORMULA'
before_install: skip
before_install: 'skip'
script:
# Update `AUTHORS.md`
- export MAINTAINER_TOKEN=${GH_TOKEN}
Expand All @@ -66,8 +72,9 @@ jobs:
@semantic-release/exec@3
@semantic-release/git@7
deploy:
provider: script
provider: 'script'
# Using deprecated `skip_cleanup` until `cleanup: false` works reliably
# cleanup: false
skip_cleanup: true
script:
# Run `semantic-release`
- npx semantic-release@15
# Run `semantic-release`
script: 'npx semantic-release@15'

0 comments on commit df299f6

Please sign in to comment.