-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
40 lines (40 loc) · 2.01 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
language: java
sudo: false
addons:
apt:
packages:
- oracle-java8-installer
install:
- [ -d ${TRAVIS_BUILD_DIR}/apache-jmeter-3.2 ] || wget -c http://apache.stu.edu.tw//jmeter/binaries/apache-jmeter-3.2.tgz
- [ -f ${TRAVIS_BUILD_DIR}/apache-jmeter-3.2.tgz ] && tar -xf apache-jmeter-3.2.tgz
before_script:
- ls -al
- cp ${TRAVIS_BUILD_DIR}/apache-jmeter-3.2/extras/ant-jmeter-1.1.1.jar ./
- cp ${TRAVIS_BUILD_DIR}/apache-jmeter-3.2/extras/jmeter-results-detail-report_21.xsl ./
- cp ${TRAVIS_BUILD_DIR}/apache-jmeter-3.2/extras/collapse.png ./
- cp ${TRAVIS_BUILD_DIR}/apache-jmeter-3.2/extras/expand.png ./
- ls -al
- echo ${TRAVIS_BUILD_NUMBER}
- echo $TRAVIS_BUILD_NUMBER
cache:
- ${TRAVIS_BUILD_DIR}/apache-jmeter-3.2
branches:
only:
- master
script:
- jdk_switcher use oraclejdk8
- ant -buildfile build.xml -Dtestpath=./Travis-ci-example -Dtest="google" -Dbasedir=/home/travis/build/dariachen/JmeterExample -Djmeter.home="/home/travis/build/dariachen/JmeterExample/apache-jmeter-3.2"
deploy:
provider: s3
access_key_id: AKIAIOOONVMT6LL6EZ2A
secret_access_key:
secure: bajGOaHanVj9JY87HeagO6i3v+ZrkZWP0Ml5O4LpkIfsVbr7h7JhYbLWpXLGyln0qVyXAnx0tHbrAqP10FOTrNcPIQqAZ1Ex5yp6DWf9nZJRlTYA0Cp0Hkcm0Mj5TzPpyO9yA4ldNIGiHflivIoCJU4W7IPVX3rC+08pOa8yRKaMXRpTOheW9v6PrjFf4djl7m0hV8Vpo4M04PLhCfU/Q12XqT3bUM5b8Zqojy9acnL9dTfiyVaDxXGO0iYK2zXKNHmiqSNAI7nV72ZUA+8jqWQ0Jg9RC8hqS8xFCorI6C9f1fSIOC8cwAUofqDo+ZWBVmivSrAPJg7zk4W/4Ffg2CpBZPKVvgxo5RcAcWahLxHGTllWehXfZCFMexyTMobHlmcSiKmT+/2dagYotZfozuJLNf3Rw7EwH5Mmk71JMklWEalsj7x4gLP4fvR/bzhf5qZsDQu5927lIdZJzwk3qodStV1biQ17K8MinJQ5GWA/YHxlPDDOp4FDsMGQRMGKin0e/8yN3YwJRkMXbjWBUPBU8Duw/4QxUBU8IPtSH+5tDkIBzNdDYg+OZ40OpGxeoWqZ4gDatJPt2aGE3yhZjMiYB8lBTIuh8y4RhMgdKsZqrf4LcTqGfjaFON+mCJKyop754D0KVcYUqvJ/rJWKKcDOb/krDIxcr3LqwQ7VyiE=
bucket: "e2etestresult"
skip_cleanup: true
acl: public_read
region: ap-northeast-1
local_dir: ./Travis-ci-example/result
after_deploy:
- cd ./Travis-ci-example
- chmod 744 parse_result.sh
- sh parse_result.sh || travis_terminate 1;