forked from web-push-libs/web-push-php
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
44 lines (35 loc) · 1.02 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
dist: trusty
language: php
sudo: required
# Downloaded browsers will be cached in selenium-assistant by
# web-push-testing-service. Caching will speed up build time.
cache:
directories:
- ~/.selenium-assistant
- node_modules # cache modules too
- $HOME/.composer/cache/files # and composer packages
matrix:
allow_failures:
- php: nightly
fast_finish: true
include:
- php: 7.1
- php: 7.2
- php: nightly
env:
- TRAVIS_NODE_VERSION="stable"
before_install:
- nvm install node
install:
- npm install github:Minishlink/web-push-testing-service#update/deps -g
before_script:
- composer install --prefer-source -n
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start || echo \"Unable to start virtual display.\""
- sleep 3 # give xvfb some time to start
script:
- web-push-testing-service start example -p 9012
- ./vendor/bin/phpunit
- web-push-testing-service stop example
after_script:
- ./vendor/bin/phpstan analyse --level max src