forked from NLPchina/elasticsearch-sql
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
32 lines (26 loc) · 769 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
language: java
jdk:
- oraclejdk8
addons:
apt:
packages:
- oracle-java8-installer
addons:
apt:
packages:
- oracle-java8-installer
before_install:
# update to java 8
- sudo update-java-alternatives -s java-8-oracle
- export JAVA_HOME=/usr/lib/jvm/java-8-oracle
- wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.6.3.deb && sudo dpkg -i --force-confnew elasticsearch-5.6.3.deb
- sudo cp ./src/test/resources/elasticsearch.yml /etc/elasticsearch/elasticsearch.yml
- sudo cat /etc/elasticsearch/elasticsearch.yml
- sudo java -version
- sudo service elasticsearch start
- sleep 30
install:
- mvn install -DskipTests=true -Dmaven.javadoc.skip=true -Dgpg.skip=true
script:
- ulimit -a
- mvn test