forked from web-push-libs/web-push-php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
55 lines (47 loc) · 1.26 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
os: linux
dist: xenial
language: php
addons:
chrome: stable
firefox: latest
apt:
update: true
packages:
# Ubuntu 16+ does not install this dependency by default.
- libgconf-2-4
- chromium-chromedriver
services:
- xvfb
# Downloaded browsers will be cached in selenium-assistant by
# web-push-testing-service. Caching will speed up build time.
cache:
directories:
- ~/.selenium-assistant
- $COMPOSER_CACHE_DIR
- $HOME/.composer/cache
- node_modules
- vendor
jobs:
include:
- php: 7.2
- php: 7.3
- php: 7.4
- php: nightly
allow_failures:
- php: nightly
fast_finish: true
env:
global:
- TRAVIS_NODE_VERSION="stable"
before_install:
- composer config discard-changes true
- nvm install node
install:
- npm i -g "https://github.com/GoogleChromeLabs/web-push-testing-service.git#012508983fa5dd3d25d06f0b937f92c33fc71382"
- composer install --prefer-source -n
script:
- echo "Preparing unit tests skipped, will check locally" # web-push-testing-service start example -p 9012
- echo "Unit tests skipped, will check locally" # composer test:unit
- echo "Finishing unit tests skipped, will check locally" # web-push-testing-service stop example
- composer test:typing
- composer test:syntax