-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
53 lines (51 loc) · 1.09 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
language: php
dist: trusty
env:
- WP_VERSION=latest
cache:
directories:
- $HOME/.composer/cache
- $HOME/.npm
jobs:
include:
- stage: test
php: 7.0
name: "PHP Code sniffer lint."
script:
- composer install
- composer run-script lint
- php: 5.2
dist: precise
script:
- ./bin/run-unit-tests.sh
- php: 5.3
dist: precise
script:
- ./bin/run-unit-tests.sh
- php: 5.4
script:
- ./bin/run-unit-tests.sh
- php: 5.5
script:
- ./bin/run-unit-tests.sh
- php: 5.6
script:
- ./bin/run-unit-tests.sh
- php: 7.0
script:
- ./bin/run-unit-tests.sh
- php: 7.1
script:
- ./bin/run-unit-tests.sh
- stage: deploy
before_install:
- nvm install && nvm use
- npm install npm -g
script:
- npm install || exit 1
- npm run semantic-release || exit 1
stages:
- name: deploy
if: branch = master and type != "pull_request" and repo = "Codeinwp/themeisle-sdk"
- name: test
if: type = "pull_request"