-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
36 lines (29 loc) · 802 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
language: php
php:
- 5.6
- 7.0
- 7.1
- 7.2
- 7.3
sudo: false
cache:
directories:
- $HOME/.composer/cache
before_install:
- nvm install 7
- nvm use 7
install:
- cd ../..
- git clone --depth 1 https://github.com/omeka/omeka-s.git
- cp -a $(readlink -e $(cd -)) omeka-s/modules/LanguageSwitcher
- 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/LanguageSwitcher
- composer install
script: ../../vendor/bin/phpunit