forked from biblibre/omeka-s-module-Solr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
37 lines (31 loc) · 977 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
33
34
35
36
37
language: php
php:
- 5.6
- 7.0
- 7.1
- 7.2
cache:
directories:
- $HOME/.composer/cache
before_install:
- nvm install 7
- nvm use 7
install:
- yes '' | pecl install solr
- cd ../..
- git clone --depth 1 https://github.com/omeka/omeka-s.git
- git clone --depth 1 https://github.com/biblibre/omeka-s-module-Search.git omeka-s/modules/Search
- cp -a $(readlink -e $(cd -)) omeka-s/modules/Solr
- cd omeka-s
- npm install
- ./node_modules/gulp/bin/gulp.js init
before_script:
- mysql -e "create database IF NOT EXISTS omeka_test;" -uroot
- sed -i 's/^host.*/host = "localhost"/' application/test/config/database.ini
- sed -i 's/^user.*/user = "root"/' application/test/config/database.ini
- sed -i 's/^dbname.*/dbname = "omeka_test"/' application/test/config/database.ini
- cd modules/Solr
- composer install
script:
- ../../vendor/bin/phpunit
- ../../vendor/bin/php-cs-fixer fix -v --dry-run --using-cache=no --allow-risky=yes