forked from node-gh/gh
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
47 lines (43 loc) · 1.19 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
language: node_js
sudo: false
env: FORCE_COLOR=true
# Trigger a push build on master and greenkeeper branches + PRs build on every branches
# Avoid double build on PRs (See https://github.com/travis-ci/travis-ci/issues/1147)
branches:
only:
- master
- type != push
script:
- git config --global user.name "Ryan Garant"
- npm run-script build
- npm link
- npm run-script test:ci
- export NODE_ENV=production
- npm install --production
- gh
jobs:
include:
- stage: test
node_js: '6'
os: osx
- node_js: '8'
os: osx
- os: linux
node_js: 'lts/*'
# uncomment in the future when this is fixed: https://travis-ci.community/t/node-js-build-fails-with-no-obvious-error/961/8
#- os: windows
# node_js: 'lts/*'
- os: osx
node_js: 'lts/*'
# latest version of node
- node_js: 'node'
os: osx
- stage: release
node_js: lts/*
script:
- npm run-script build
- npx semantic-release
stages:
- test
- name: release
if: repo = node-gh/gh AND branch = master AND type IN (push)