forked from silverstripe/vendor-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
37 lines (31 loc) · 821 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
language: php
dist: trusty
cache:
directories:
- $HOME/.composer/cache/files
matrix:
include:
- php: 7.1
env:
- COMPOSER_SELFUPDATE_ARG=--1
- COMPOSER_ARG=--prefer-lowest
- php: 7.3
env:
- COMPOSER_SELFUPDATE_ARG=--1
- php: 7.4
env:
- COMPOSER_SELFUPDATE_ARG=--preview
- php: nightly
env:
- COMPOSER_ARG=--ignore-platform-reqs
- COMPOSER_SELFUPDATE_ARG=--preview
fast_finish: true
before_script:
- phpenv rehash
- export PATH=~/.composer/vendor/bin:$PATH
- composer self-update $COMPOSER_SELFUPDATE_ARG
- composer validate
- composer update --prefer-dist --no-interaction --no-progress --no-suggest --optimize-autoloader --verbose --profile $COMPOSER_ARG
script:
- vendor/bin/phpunit
- composer run-script lint