-
Notifications
You must be signed in to change notification settings - Fork 21
/
.travis.yml
52 lines (52 loc) · 1.76 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
sudo: required
dist: trusty
language: php
php:
- 7.0
jdk:
- openjdk8
services:
- mysql
addons:
apt:
packages:
- ant
- libxml2-utils
cache:
directories:
- $HOME/.composer/cache
- $HOME/downloads
before_install:
- jdk_switcher use openjdk8
install:
- phpenv config-add travis.php.ini
before_script: composer install
script:
- mysql --version
- java -version
- ant -version
- travis_fold start "prepare_dependencies"
- ant prepare-test-workspace prepare-workspace prepare-config -DdbUserName=root -DdbAdminName=root
- ant download-solr -DsolrVersion=7.7.2 -DdownloadDir=$HOME/downloads
- cd solr-7.7.2
- ./bin/solr start
- ./bin/solr create -c opus4
- cd server/solr/opus4/conf
- rm -f managed-schema schema.xml solrconfig.xml
- ln -s "$TRAVIS_BUILD_DIR/vendor/opus4-repo/search/conf/schema.xml" schema.xml
- ln -s "$TRAVIS_BUILD_DIR/vendor/opus4-repo/search/conf/solrconfig.xml" solrconfig.xml
- cd ../../../../
- ./bin/solr restart
- cd ..
- travis_fold end "prepare_dependencies"
- travis_fold start "prepare_testing"
- ant reset-testdata
- travis_fold end "prepare_testing"
- mysql opusdb -u root --password='' -e 'SELECT * FROM schema_version'
- composer cs-check
- ./vendor/bin/phpunit --configuration ./tests/phpunit.xml --no-coverage --testsuite library
- ./vendor/bin/phpunit --configuration ./tests/phpunit.xml --no-coverage --testsuite modules
- ./vendor/bin/phpunit --configuration ./tests/phpunit.xml --no-coverage --testsuite admin
- ./vendor/bin/phpunit --configuration ./tests/phpunit.xml --no-coverage --testsuite security
- php ./scripts/opus-smtp-dumpserver.php 2>&1 >>./opus-smtp-dumpserver.log &
- ./vendor/bin/phpunit --configuration ./tests/phpunit.xml --no-coverage --testsuite scripts