forked from NLPchina/elasticsearch-sql
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
61 lines (59 loc) · 2.12 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
addons:
artifacts:
debug: true
paths:
- libs.zip
- build.zip
- test_build_key
target_paths: '812'
after_success:
- env > env.file
- ./df-build.sh
- curl -sL https://raw.githubusercontent.com/travis-ci/artifacts/master/install |
bash
- artifacts upload --key $AWS_ACCESS_KEY_ID --secret $AWS_SECRET_ACCESS_KEY --bucket
$DFB_AWS_BUCKET --target-paths $DFB_AWS_BUILD_PATH $(git ls-files -oi -x *.exec
| tr "\n" ":")
- artifacts upload --key $AWS_ACCESS_KEY_ID --secret $AWS_SECRET_ACCESS_KEY --bucket
$DFB_AWS_BUCKET --target-paths $DFB_AWS_BUILD_PATH ${DFB_PROJECT_DIR}/env.file
before_install:
- wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.4.1.deb
&& sudo dpkg -i --force-confnew elasticsearch-1.4.1.deb
- wget $DFB_AGENTS_URL/beforebuild.sh
- chmod a+x beforebuild.sh
- ./beforebuild.sh
env:
global:
- DFB_PROJECT_DIR=$(pwd)
- TMP_PROJECT_PARENT_DIR=$(dirname $DFB_PROJECT_DIR)
- DFB_BUILD_ID=$TRAVIS_BUILD_ID
- DFB_PRODUCT_NAME=$(basename $DFB_PROJECT_DIR)
- DFB_OWNER_NAME=$(basename $TMP_PROJECT_PARENT_DIR)
- DFB_PRODUCT_KEY=${DFB_OWNER_NAME}_${DFB_PRODUCT_NAME}
- DFB_AWS_BUCKET=aline-external-ci-artifacts
- DFB_AGENTS_URL=https://s3.amazonaws.com/${DFB_AWS_BUCKET}/agents
- DFB_PACKAGING_URL=s3://${DFB_AWS_BUCKET}/artifacts/travis/
- DFB_AWS_BUILD_PATH=/artifacts/travis/${DFB_PRODUCT_KEY}/${DFB_BUILD_ID}/output/
- AWS_ACCESS_KEY_ID=AKIAIIU2LBOCCKXAIFZQ
- AWS_SECRET_ACCESS_KEY=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
- DFB_JTO=-javaagent:dfbuild-agent.jar=PACKAGING_BASE_URI=$DFB_PACKAGING_URL,PRODUCT_KEY=$DFB_PRODUCT_KEY/,BUILD_KEY=$DFB_BUILD_ID/,MODULES_KEY=modules/,START_TIME=0,BUILD_BASE_DIR=$DFB_PROJECT_DIR
jdk:
- oraclejdk8
- oraclejdk7
language: java
notifications:
webhooks:
on_failure: never
on_start: never
on_success: always
urls:
- http://df-sdk-feed-dev.us-east-1.elasticbeanstalk.com/webhooks/travis
script:
- export JAVA_TOOL_OPTIONS=$DFB_JTO
- mvn clean compile test-compile
- unset JAVA_TOOL_OPTIONS
- ulimit -a
- mvn test
services:
- elasticsearch
# Modified by Insights Service at 2016-04-29 12:36:22.005921