瀏覽代碼

ci(travis): apply changes from build config validation [skip ci]

* Automated using https://github.com/myii/ssf-formula/pull/98
tags/v0.5.4
Imran Iqbal 5 年之前
父節點
當前提交
1276ce2411
共有 1 個檔案被更改,包括 25 行新增21 行删除
  1. +25
    -21
      .travis.yml

+ 25
- 21
.travis.yml 查看文件

@@ -2,15 +2,18 @@
# vim: ft=yaml
---
## Machine config
dist: trusty
os: 'linux'
arch: 'amd64'
dist: 'trusty'
version: '~> 1.0'
sudo: required
services:
- docker

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

## Services config
services:
- docker

## Script to run for the test stage
script:
@@ -19,8 +22,8 @@ script:
## 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
@@ -29,11 +32,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:
# Need to use `pip3` due to using `trusty` on Travis
# [Py2/InsecurePlatformWarning] Tornado requires an up-to-date SSL module.
@@ -97,12 +100,12 @@ jobs:
# - env: INSTANCE=default-arch-base-latest-2017-7-py2

## 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}
@@ -114,8 +117,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'

Loading…
取消
儲存