-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy path.travis.yml
40 lines (31 loc) · 950 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
# This uses newer and faster docker based build system
sudo: false
language: php
php:
- '7.4'
- '7.3'
- '7.2'
- '7.1'
- '7.0'
- '5.6'
- nightly
matrix:
allow_failures:
- php: nightly
before_script:
# We use the same repo straight from github because it required lesser amount of hacks
# Here we force the same current git commit id for composer
- sed -i -e "s|%%TRAVIS_COMMIT%%|$TRAVIS_COMMIT|g" tests/move/composer.json
- sed -i -e "s|%%TRAVIS_COMMIT%%|$TRAVIS_COMMIT|g" tests/copy/composer.json
# Install test run into tests/ folder using tests/composer.json
- composer install --working-dir=./tests/move/
- composer install --working-dir=./tests/copy/
script:
# Sanity php syntax check
- php -d error_reporting=32767 -l src/Dropin.php
# Sanity composer check
- composer validate --strict
# Install phpunit etc
- composer install --prefer-dist
# Run the real tests finally
- composer test