Skip to content

Commit 4125887

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

File tree

1 file changed

+25
-21
lines changed

1 file changed

+25
-21
lines changed

.travis.yml

Lines changed: 25 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,18 @@
22
# vim: ft=yaml
33
---
44
## Machine config
5-
dist: bionic
5+
os: 'linux'
6+
arch: 'amd64'
7+
dist: 'bionic'
68
version: '~> 1.0'
7-
sudo: required
8-
services:
9-
- docker
109

1110
## Language and cache config
12-
language: ruby
13-
cache: bundler
11+
language: 'ruby'
12+
cache: 'bundler'
13+
14+
## Services config
15+
services:
16+
- docker
1417

1518
## Script to run for the test stage
1619
script:
@@ -19,8 +22,8 @@ script:
1922
## Stages and jobs matrix
2023
stages:
2124
- test
22-
- name: release
23-
if: branch = master AND type != pull_request
25+
- name: 'release'
26+
if: 'branch = master AND type != pull_request'
2427
jobs:
2528
allow_failures:
2629
- env: Lint_rubocop
@@ -29,11 +32,11 @@ jobs:
2932
## Define the test stage that runs the linters (and testing matrix, if applicable)
3033

3134
# Run all of the linters in a single job (except `rubocop`)
32-
- language: node_js
33-
node_js: lts/*
34-
env: Lint
35+
- language: 'node_js'
36+
node_js: 'lts/*'
37+
env: 'Lint'
3538
name: 'Lint: salt-lint, yamllint & commitlint'
36-
before_install: skip
39+
before_install: 'skip'
3740
script:
3841
# Install and run `salt-lint`
3942
- pip install --user salt-lint
@@ -94,12 +97,12 @@ jobs:
9497
# - env: INSTANCE=default-arch-base-latest-2017-7-py2
9598

9699
## Define the release stage that runs `semantic-release`
97-
- stage: release
98-
language: node_js
99-
node_js: lts/*
100-
env: Release
100+
- stage: 'release'
101+
language: 'node_js'
102+
node_js: 'lts/*'
103+
env: 'Release'
101104
name: 'Run semantic-release inc. file updates to AUTHORS, CHANGELOG & FORMULA'
102-
before_install: skip
105+
before_install: 'skip'
103106
script:
104107
# Update `AUTHORS.md`
105108
- export MAINTAINER_TOKEN=${GH_TOKEN}
@@ -111,8 +114,9 @@ jobs:
111114
@semantic-release/exec@3
112115
@semantic-release/git@7
113116
deploy:
114-
provider: script
117+
provider: 'script'
118+
# Using deprecated `skip_cleanup` until `cleanup: false` works reliably
119+
# cleanup: false
115120
skip_cleanup: true
116-
script:
117-
# Run `semantic-release`
118-
- npx semantic-release@15
121+
# Run `semantic-release`
122+
script: 'npx semantic-release@15'

0 commit comments

Comments
 (0)