forked from mjaschen/phpgeo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
50 lines (42 loc) · 837 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
os: linux
dist: xenial
language: php
php:
- "7.4"
- "7.3"
- "7.2"
cache:
directories:
- vendor
- $HOME/.composer/cache
env:
jobs:
- DEPENDENCIES=latest
- DEPENDENCIES=oldest
install:
- >
if [ "$DEPENDENCIES" = "latest" ]; then
echo "Installing the latest dependencies";
composer update --with-dependencies --prefer-stable --prefer-dist
else
echo "Installing the lowest dependencies";
composer update --with-dependencies --prefer-stable --prefer-dist --prefer-lowest
fi;
composer show;
script:
- >
echo;
echo "Validating the composer.json";
composer ci:composer-validate;
- >
echo;
echo "Linting all PHP files";
composer ci:lint;
- >
echo;
echo "Running the Psalm static analyzer";
composer ci:psalm;
- >
echo;
echo "Running the PHPUnit tests";
composer ci:tests;