ci(travis): apply changes from build config validation [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/98
This commit is contained in:
parent
5a6ed537d6
commit
08ca2a6ebb
1 changed files with 25 additions and 21 deletions
46
.travis.yml
46
.travis.yml
|
@ -2,15 +2,18 @@
|
||||||
# vim: ft=yaml
|
# vim: ft=yaml
|
||||||
---
|
---
|
||||||
## Machine config
|
## Machine config
|
||||||
dist: bionic
|
os: 'linux'
|
||||||
|
arch: 'amd64'
|
||||||
|
dist: 'bionic'
|
||||||
version: '~> 1.0'
|
version: '~> 1.0'
|
||||||
sudo: required
|
|
||||||
services:
|
|
||||||
- docker
|
|
||||||
|
|
||||||
## Language and cache config
|
## Language and cache config
|
||||||
language: ruby
|
language: 'ruby'
|
||||||
cache: bundler
|
cache: 'bundler'
|
||||||
|
|
||||||
|
## Services config
|
||||||
|
services:
|
||||||
|
- docker
|
||||||
|
|
||||||
## Script to run for the test stage
|
## Script to run for the test stage
|
||||||
script:
|
script:
|
||||||
|
@ -19,18 +22,18 @@ script:
|
||||||
## Stages and jobs matrix
|
## Stages and jobs matrix
|
||||||
stages:
|
stages:
|
||||||
- test
|
- test
|
||||||
- name: release
|
- name: 'release'
|
||||||
if: branch = master AND type != pull_request
|
if: 'branch = master AND type != pull_request'
|
||||||
jobs:
|
jobs:
|
||||||
include:
|
include:
|
||||||
## Define the test stage that runs the linters (and testing matrix, if applicable)
|
## Define the test stage that runs the linters (and testing matrix, if applicable)
|
||||||
|
|
||||||
# Run all of the linters in a single job
|
# Run all of the linters in a single job
|
||||||
- language: node_js
|
- language: 'node_js'
|
||||||
node_js: lts/*
|
node_js: 'lts/*'
|
||||||
env: Lint
|
env: 'Lint'
|
||||||
name: 'Lint: salt-lint, yamllint, rubocop & commitlint'
|
name: 'Lint: salt-lint, yamllint, rubocop & commitlint'
|
||||||
before_install: skip
|
before_install: 'skip'
|
||||||
script:
|
script:
|
||||||
# Install and run `salt-lint`
|
# Install and run `salt-lint`
|
||||||
- pip install --user salt-lint
|
- pip install --user salt-lint
|
||||||
|
@ -83,12 +86,12 @@ jobs:
|
||||||
# - env: INSTANCE=default-arch-base-latest-2017-7-py2
|
# - env: INSTANCE=default-arch-base-latest-2017-7-py2
|
||||||
|
|
||||||
## Define the release stage that runs `semantic-release`
|
## Define the release stage that runs `semantic-release`
|
||||||
- stage: release
|
- stage: 'release'
|
||||||
language: node_js
|
language: 'node_js'
|
||||||
node_js: lts/*
|
node_js: 'lts/*'
|
||||||
env: Release
|
env: 'Release'
|
||||||
name: 'Run semantic-release inc. file updates to AUTHORS, CHANGELOG & FORMULA'
|
name: 'Run semantic-release inc. file updates to AUTHORS, CHANGELOG & FORMULA'
|
||||||
before_install: skip
|
before_install: 'skip'
|
||||||
script:
|
script:
|
||||||
# Update `AUTHORS.md`
|
# Update `AUTHORS.md`
|
||||||
- export MAINTAINER_TOKEN=${GH_TOKEN}
|
- export MAINTAINER_TOKEN=${GH_TOKEN}
|
||||||
|
@ -100,8 +103,9 @@ jobs:
|
||||||
@semantic-release/exec@3
|
@semantic-release/exec@3
|
||||||
@semantic-release/git@7
|
@semantic-release/git@7
|
||||||
deploy:
|
deploy:
|
||||||
provider: script
|
provider: 'script'
|
||||||
|
# Using deprecated `skip_cleanup` until `cleanup: false` works reliably
|
||||||
|
# cleanup: false
|
||||||
skip_cleanup: true
|
skip_cleanup: true
|
||||||
script:
|
# Run `semantic-release`
|
||||||
# Run `semantic-release`
|
script: 'npx semantic-release@15'
|
||||||
- npx semantic-release@15
|
|
||||||
|
|
Loading…
Reference in a new issue