-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
39 lines (31 loc) · 843 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
38
39
language: php
php:
- 5.6
- 7.0
- 7.1
- 7.2
- 7.3
sudo: false
cache:
directories:
- $HOME/.composer/cache
before_install:
- nvm install node
- nvm use node
install:
- cd ../..
- git clone --depth 1 https://github.com/omeka/omeka-s.git
- cp -a $(readlink -e $(cd -)) omeka-s/modules/ArchiveRepertory
- cd omeka-s
- npm install
- ./node_modules/gulp/bin/gulp.js init
- cd modules/ArchiveRepertory/
- composer install
- cd ../..
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/ArchiveRepertory/test
script: phpunit