-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
56 lines (45 loc) · 971 Bytes
/
.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
# Travis CI configuration
# @link https://travis-ci.org/
os: linux
dist: xenial
language: generic
notifications:
email:
on_success: never
on_failure: change
cache:
apt: true
directories:
- $HOME/.composer/cache
- vendor
- $HOME/.npm
- $HOME/.nvm/.cache
branches:
only:
- stable
- /^stage\/.*/
before_install:
- npm --version
- node --version
- nvm install --latest-npm
jobs:
include:
- name: Lint JS
install: npm ci
script: npm run lint:scripts
- name: Lint CSS
install: npm ci
script: npm run lint:styles
- name: Lint JSON
install: npm ci
script: npm run lint:pkg
- name: Lint PHP
install: composer install
script:
- find . \( -name '*.php' \) -not -path "./vendor/*" | xargs -n1 bash -c 'php -lf $0 || exit 1'
- npm run lint:php
- name: Build
install:
- npm ci
- composer install
- npm run build