forked from xdebug/vscode-php-debug
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
82 lines (72 loc) · 1.95 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
78
79
80
81
82
language: php
php:
- '5.6'
- '7.1'
env:
global:
- NODE_VERSION=8.9.3
- NPM_VERSION=^6.3.0
- BUILD_LEADER_ID=4
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]
- mkdir -p /usr/local/etc/php/7.1/conf.d
- cp travis-php.ini /usr/local/etc/php/7.1/conf.d/
# see per https://javorszky.co.uk/2018/05/03/getting-xdebug-working-on-php-7-2-and-homebrew/
# avoid problems with brew's symlink and pecl's recursive mkdir
- rm /usr/local/Cellar/[email protected]/7.1.26/pecl
- pecl install xdebug-$XDEBUG_VERSION
# make xdebug.so available at pecl's expected location
- ln -s /usr/local/Cellar/[email protected]/7.1.26/pecl/ /usr/local/lib/php/pecl
- php -i
- 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+$/