forked from kitodo/kitodo-production
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
26 lines (18 loc) · 736 Bytes
/
Copy path.travis.yml
File metadata and controls
26 lines (18 loc) · 736 Bytes
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
# Travis continuous integration for kitodo-production
language: java
cache:
sudo: required
env: DB=mysql
services:
- mysql
script: mvn clean install -Pall-tests,flyway
before_install:
- curl -O https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.1.1.deb
- sudo dpkg -i --force-confnew elasticsearch-5.1.1.deb
- sudo /etc/init.d/elasticsearch start
- until curl --silent -XGET --fail http://localhost:9200; do printf '.'; sleep 1; done
before_script:
- cp config/database.yml.travis config/database.yml
- mysql -u root -e 'CREATE DATABASE kitodo;'
- mysql -u root -e "CREATE USER 'kitodo'@'localhost' IDENTIFIED BY 'kitodo';"
- mysql -u root -e "GRANT ALL ON kitodo.* TO 'kitodo'@'localhost';"