forked from KETSE/casebox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
62 lines (53 loc) · 1.71 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
58
59
60
61
62
sudo: false
language: php
php:
- 5.6
services:
- mysql
cache:
directories:
- $HOME/download-cache
addons:
hosts:
- dev.casebox.local
before_install:
- mkdir -p $HOME/download-cache
- mkdir -p build/logs
- mkdir -p logs
- mkdir -p data/tmp/minify
- mysql -u root -e "CREATE USER 'test'@'%' IDENTIFIED BY 't3st'"
- mysql -u root -e "CREATE USER 'test'@'localhost' IDENTIFIED BY 't3st'"
- mysql -u root -e "GRANT ALL PRIVILEGES ON *.* TO 'test'@'%'"
- mysql -u root -e "GRANT ALL PRIVILEGES ON *.* TO 'test'@'localhost'"
install:
# - pecl install mbstring
# - pecl install curl
- curl -sS https://getcomposer.org/installer | php
# - php composer.phar install --no-interaction
- php composer.phar install --no-interaction
# - echo "See php extensions:"
# - php -m
before_script:
# copy and install solr
- export SOLR_VERSION="5.2.0"
- export SOLR_PORT="8983"
- bash tests/server/solr/solr5-install.sh
# may take few seconds to start and may not be available when the script is executed
- sleep 3
# add solr core cbtest_log
- export SOLR_CORENAME="cbtest_log"
- export SOLR_CONFIGSET="cbtest_log"
- bash tests/server/solr/solr5-addcore.sh
# add solr core test
- export SOLR_CORENAME="cbtest_test"
- export SOLR_CONFIGSET="cbtest_default"
- bash tests/server/solr/solr5-addcore.sh
# add php extensions
# - phpenv config-add "${TRAVIS_BUILD_DIR}/tests/server/php/config-extensions.ini"
# autoinstall CASEBOX
- php tests/auto_install.php
script:
- vendor/bin/phpunit -c tests/phpunit-travis.xml
after_script:
- if [ -f vendor/bin/coveralls ] ; then php vendor/bin/coveralls -v || true ; fi
- bash tests/server/solr/solr5-stop.sh