-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path.travis.yml
32 lines (23 loc) · 885 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
language: php
php:
- 7.2
- 7.3
- 7.4
services:
- mysql
install:
# Install wireshell
- composer global require wireshell/wireshell
# Install ProcessWire
- cd ../..
- ~/.config/composer/vendor/bin/wireshell new processwire --profile=blank --dbUser=root --dbPass= --dbName=processwire --timezone=Europe/Berlin --httpHosts=localhost --username=admin --userpass=s3cr3t [email protected]
# Copy the cloned module to site/modules
- cd processwire/site/modules
- cp -r $TRAVIS_BUILD_DIR .
# Install dependencies
- cd TemplateEngineTwig
- composer install
# Move the TemplateEngineFactory folder to site/modules, since we composer install in the module instead of ProcessWire root
- mv site/modules/TemplateEngineFactory/ ../
script:
- vendor/bin/phpunit --bootstrap tests/bootstrap.php tests --colors