forked from isotope/core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
32 lines (28 loc) · 1.17 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
language: php
php:
- 5.3
- 5.4
- 5.5
env:
- CONTAO_VERSION="~3.3.4"
- CONTAO_VERSION="3.4.*"
sudo: false
install:
- mysql -e 'CREATE DATABASE isotope_core_testsuite;'
- sed '$d' composer.json | sed '$d' > composer.new
- 'echo ''},"prefer-stable": true,"minimum-stability": "dev"}'' >> composer.new'
- mv composer.new composer.json
- composer require contao/core:${CONTAO_VERSION} --no-update
- composer update
- cp -R system/modules/isotope vendor/contao/core/system/modules/isotope
- cp -R system/modules/isotope_reports vendor/contao/core/system/modules/isotope_reports
- cp -R system/modules/isotope_rules vendor/contao/core/system/modules/isotope_rules
- cd vendor/contao/core
- rm -rf vendor
- ln -s ../../ ./vendor
- cd system/modules/isotope
- cp test/fixtures/travis/initconfig.php ../../config/initconfig.php
- cp test/fixtures/travis/langconfig.php ../../config/langconfig.php
- cp test/fixtures/travis/localconfig.php ../../config/localconfig.php
- cp test/fixtures/travis/pathconfig.php ../../config/pathconfig.php
script: phpunit --configuration test/phpunit.xml --bootstrap test/bootstrap.php ./test