forked from mirrors/probot
31 lines
706 B
YAML
31 lines
706 B
YAML
language: node_js
|
|
cache: npm
|
|
|
|
branches:
|
|
only:
|
|
- master
|
|
- beta # semantic-release preview releases
|
|
- next # semantic-release @next releases
|
|
- /^\d+\.x$/ # semantic-release maintenance releases
|
|
- /^greenkeeper.*$/ # Greenkeeper updates
|
|
|
|
stages:
|
|
- test
|
|
- name: release
|
|
if: branch =~ /^(\d+\.x|master|next|beta)$/ AND type IN (push)
|
|
|
|
jobs:
|
|
include:
|
|
- stage: test
|
|
node_js: 10
|
|
before_script: npm run build
|
|
- node_js: 8
|
|
env: test & coverage upload
|
|
before_script: npm run build
|
|
after_script: npx codecov
|
|
- stage: release
|
|
node_js: lts/*
|
|
env: semantic-release
|
|
before_script: npm run build
|
|
script: npx semantic-release
|