Skip to content

Commit f620190

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

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,18 +22,18 @@ 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
include:
2629
## Define the test stage that runs the linters (and testing matrix, if applicable)
2730

2831
# Run all of the linters in a single job
29-
- language: node_js
30-
node_js: lts/*
31-
env: Lint
32+
- language: 'node_js'
33+
node_js: 'lts/*'
34+
env: 'Lint'
3235
name: 'Lint: salt-lint, yamllint, rubocop & commitlint'
33-
before_install: skip
36+
before_install: 'skip'
3437
script:
3538
# Install and run `salt-lint`
3639
- pip install --user salt-lint
@@ -83,12 +86,12 @@ jobs:
8386
# - env: INSTANCE=default-arch-base-latest-2017-7-py2
8487

8588
## Define the release stage that runs `semantic-release`
86-
- stage: release
87-
language: node_js
88-
node_js: lts/*
89-
env: Release
89+
- stage: 'release'
90+
language: 'node_js'
91+
node_js: 'lts/*'
92+
env: 'Release'
9093
name: 'Run semantic-release inc. file updates to AUTHORS, CHANGELOG & FORMULA'
91-
before_install: skip
94+
before_install: 'skip'
9295
script:
9396
# Update `AUTHORS.md`
9497
- export MAINTAINER_TOKEN=${GH_TOKEN}
@@ -100,8 +103,9 @@ jobs:
100103
@semantic-release/exec@3
101104
@semantic-release/git@7
102105
deploy:
103-
provider: script
106+
provider: 'script'
107+
# Using deprecated `skip_cleanup` until `cleanup: false` works reliably
108+
# cleanup: false
104109
skip_cleanup: true
105-
script:
106-
# Run `semantic-release`
107-
- npx semantic-release@15
110+
# Run `semantic-release`
111+
script: 'npx semantic-release@15'

0 commit comments

Comments
 (0)