forked from xdebug/vscode-php-debug
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
78 lines (67 loc) · 1.6 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
language: php
php:
- '5.6'
- '7.0'
env:
global:
- NODE_VERSION=7.9.0
- NPM_VERSION=^6.2.0
- BUILD_LEADER_ID=4
- GITHUB_TOKEN=$GH_TOKEN
matrix:
- XDEBUG_VERSION=2.5.5
sudo: false
cache:
directories:
- $HOME/.npm
before_install:
- pecl install xdebug-$XDEBUG_VERSION
- phpenv config-add travis-php.ini
- nvm install $NODE_VERSION
- nvm use $NODE_VERSION
- npm install -g npm@$NPM_VERSION --depth 0
install:
- npm ci
script:
- npm run build
- npm run lint
- npm run cover
after_success:
- ./node_modules/.bin/nyc report --reporter=json
- bash <(curl -s https://codecov.io/bash)
jobs:
include:
- stage: test
os: osx
osx_image: xcode9.1
language: generic
before_install:
# Fix ruby error https://github.com/Homebrew/brew/issues/3299
- brew update
- brew install [email protected]
- brew link --force --overwrite [email protected]
- pecl install xdebug-$XDEBUG_VERSION
- mkdir -p /usr/local/etc/php/7.0/conf.d
- cp travis-php.ini /usr/local/etc/php/7.0/conf.d/
- source ~/.nvm/nvm.sh
- nvm install $NODE_VERSION
- nvm use $NODE_VERSION
- npm install -g npm@$NPM_VERSION --depth 0
- stage: release
language: node_js
node_js: '8'
before_install: skip
install:
- npm install -g npm@$NPM_VERSION
- npm ci
script:
- npm run build
- npm run semantic-release
after_success: skip
stages:
- test
- name: release
if: branch = master AND type = push AND fork = false
branches:
except:
- /^v\d+\.\d+\.\d+$/