forked from datahub-project/datahub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
47 lines (37 loc) · 1.32 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
language: java
jdk:
- oraclejdk8
before_install:
# download play 2.2.4
- wget http://downloads.typesafe.com/play/2.2.4/play-2.2.4.zip
- unzip play-2.2.4.zip && rm play-2.2.4.zip && mv play-2.2.4 $HOME/
- export PLAY_HOME="$HOME/play-2.2.4"
- echo $PLAY_HOME
# change the build file stack size
- sed -i -e 's/-Xss1M/-Xss2M/g' $PLAY_HOME/framework/build
- cat $PLAY_HOME/framework/build
# elasticsearch
- curl -O https://download.elastic.co/elasticsearch/release/org/elasticsearch/distribution/deb/elasticsearch/2.3.3/elasticsearch-2.3.3.deb && sudo dpkg -i --force-confnew elasticsearch-2.3.3.deb && sudo service elasticsearch restart
# extralibs
- wget https://github.com/ericsun2/sandbox/raw/master/extralibs/extralibs.zip
- mkdir -p metadata-etl/extralibs; unzip extralibs.zip -d metadata-etl/extralibs
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
services:
- mysql
- elasticsearch
dist: trusty
sudo: required
addons:
apt:
packages:
- mysql-server-5.6
- mysql-client-core-5.6
- mysql-client-5.6
before_script:
- mysql -u root -e 'create database if not exists wherehows'
- mysql -u root -e "GRANT ALL PRIVILEGES ON *.* TO 'travis'@'localhost'"
- cd data-model/DDL; mysql -u root -D wherehows < create_all_tables_wrapper.sql; cd ../..
- sleep 5