forked from Sunbird-Knowlg/sunbird-dial-service
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
23 lines (23 loc) · 795 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
language: java
jdk:
- openjdk8
cache:
directories:
- "$HOME/.m2"
services:
- redis-server
before_install:
- curl -O https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.3.2.deb
&& sudo dpkg -i --force-confnew elasticsearch-6.3.2.deb && sudo service elasticsearch
restart
- mkdir -p ~/logs/dialcode/
- find ${TRAVIS_BUILD_DIR}/ -type f -name "log4j2.xml" -print0 | xargs -0 sed -i -e
's/\/data\/logs/~\/logs/g'
- find ${TRAVIS_BUILD_DIR}/ -type f -name "logback.xml" -print0 | xargs -0 sed -i
-e 's/\/data\/logs/logs/g'
- find ${TRAVIS_BUILD_DIR}/ -type f -name "application.conf" -print0 | xargs -0 sed
-i -e 's/\/data\//~\//g'
- find ${TRAVIS_BUILD_DIR}/ -type f -name "*.java" -print0 | xargs -0 sed -i -e 's/\/data\//~\//g'
- sleep 10
script:
- mvn clean install