forked from oliverklee/ext-phpunit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
57 lines (48 loc) · 1.27 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
56
57
sudo: false
language: php
php:
- 7.0
- 7.1
- 7.2
env:
global:
- DATABASE_USER=travis DATABASE_HOST=localhost DATABASE_PORT=3306 DATABASE_NAME=typo3 DATABASE_PASSWORD=''
- TYPO3_PATH_ROOT=$PWD/.Build/public
matrix:
- TYPO3_VERSION="^8.7" RUN_TESTS_COMMAND=".Build/vendor/bin/typo3 phpunit:run"
matrix:
exclude:
cache:
directories:
- .Build/vendor
- $HOME/.composer/cache
before_install:
- phpenv config-rm xdebug.ini
install:
- >
composer require typo3/minimal=$TYPO3_VERSION;
composer show;
- >
.Build/vendor/bin/typo3cms install:setup --non-interactive --site-setup-type="site"
--database-user-name="${DATABASE_USER}" --database-host-name="${DATABASE_HOST}"
--database-port="${DATABASE_PORT}" --database-name="${DATABASE_NAME}"
--admin-user-name="admin" --admin-password="password" --site-name="Test installation";
- >
echo;
echo "Restoring the composer.json";
git checkout .;
before_script:
- mysql -u ${DATABASE_USER} ${DATABASE_NAME} -e "INSERT INTO be_users (username, password) VALUES ('_cli_phpunit', 'password')"
script:
- >
echo;
echo "Linting all PHP files";
composer ci:php:lint;
- >
echo;
echo "Running the unit tests";
composer ci:tests:unit;
- >
echo;
echo "Running the functional tests";
composer ci:tests:functional;