Skip to content

Commit c3685b3

Browse files
committed
ci(travis): apply changes from build config validation [skip ci]
* Automated using myii/ssf-formula#98
1 parent 9d34a63 commit c3685b3

File tree

1 file changed

+23
-16
lines changed

1 file changed

+23
-16
lines changed

.travis.yml

Lines changed: 23 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,20 @@
22
# vim: ft=yaml
33
---
44
## Machine config
5-
dist: bionic
5+
os: 'linux'
6+
arch: 'amd64'
7+
dist: 'bionic'
68
version: '~> 1.0'
79

10+
## Language and cache config
11+
language: 'ruby'
12+
cache: 'bundler'
13+
814
## Stages and jobs matrix
915
stages:
1016
- test
11-
- name: release
12-
if: branch = master AND type != pull_request
17+
- name: 'release'
18+
if: 'branch = master AND type != pull_request'
1319
jobs:
1420
allow_failures:
1521
- env: Lint_rubocop
@@ -18,11 +24,11 @@ jobs:
1824
## Define the test stage that runs the linters (and testing matrix, if applicable)
1925

2026
# Run all of the linters in a single job (except `rubocop`)
21-
- language: node_js
22-
node_js: lts/*
23-
env: Lint
27+
- language: 'node_js'
28+
node_js: 'lts/*'
29+
env: 'Lint'
2430
name: 'Lint: salt-lint, yamllint & commitlint'
25-
before_install: skip
31+
before_install: 'skip'
2632
script:
2733
# Install and run `salt-lint`
2834
- pip install --user salt-lint
@@ -49,12 +55,12 @@ jobs:
4955
- rubocop -d
5056

5157
## Define the release stage that runs `semantic-release`
52-
- stage: release
53-
language: node_js
54-
node_js: lts/*
55-
env: Release
58+
- stage: 'release'
59+
language: 'node_js'
60+
node_js: 'lts/*'
61+
env: 'Release'
5662
name: 'Run semantic-release inc. file updates to AUTHORS, CHANGELOG & FORMULA'
57-
before_install: skip
63+
before_install: 'skip'
5864
script:
5965
# Update `AUTHORS.md`
6066
- export MAINTAINER_TOKEN=${GH_TOKEN}
@@ -66,8 +72,9 @@ jobs:
6672
@semantic-release/exec@3
6773
@semantic-release/git@7
6874
deploy:
69-
provider: script
75+
provider: 'script'
76+
# Using deprecated `skip_cleanup` until `cleanup: false` works reliably
77+
# cleanup: false
7078
skip_cleanup: true
71-
script:
72-
# Run `semantic-release`
73-
- npx semantic-release@15
79+
# Run `semantic-release`
80+
script: 'npx semantic-release@15'

0 commit comments

Comments
 (0)