forked from epics-rip/ChannelFinderService
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
31 lines (23 loc) · 902 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
sudo: required
jdk:
- oraclejdk8
before_install:
- curl -O https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.7.3.deb && sudo dpkg -i --force-confnew elasticsearch-1.7.3.deb
install:
- sudo apt-get update
- sudo apt-get install python-nose
before_script:
- sleep 10
- 'echo "script.inline: on" | sudo tee -a /etc/elasticsearch/elasticsearch.yml'
- 'echo "script.inline: on" | sudo tee -a /etc/elasticsearch/indexed.yml'
- sudo /etc/init.d/elasticsearch start
- sleep 25
- curl -XGET 'http://localhost:9200/_cluster/health?pretty'
- chmod a+x channelfinder/src/main/resources/mapping_definitions.sh
script:
- channelfinder/src/main/resources/mapping_definitions.sh
- mvn clean verify -fchannelfinder/pom.xml
after_script:
- sudo /etc/init.d/elasticsearch stop
after_failure:
- find . -type f -name "*.log" -print0 -exec cat {} \;