-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
70 lines (68 loc) · 3.88 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
62
63
64
65
66
67
68
language: java
sudo: true
addons:
apt:
packages:
- oracle-java8-installer
- nodejs
services:
- mysql
install:
- wget -c https://archive.apache.org/dist/jmeter/binaries/apache-jmeter-2.13.tgz
- tar -xf apache-jmeter-2.13.tgz
- wget -P ./apache-jmeter-2.13/lib/ext https://github.com/ralfstx/minimal-json/releases/download/0.9.4/minimal-json-0.9.4.jar
- wget -P ./apache-jmeter-2.13/lib/ext https://github.com/ralfstx/minimal-json/releases/download/0.9.4/minimal-json-0.9.4-sources.jar
- wget -P ./apache-jmeter-2.13/lib/ext https://github.com/ralfstx/minimal-json/releases/download/0.9.4/minimal-json-0.9.4-javadoc.jar
- wget -P ./apache-jmeter-2.13/lib/ext https://github.com/maciejzaleski/JMeter-WebSocketSampler/releases/download/version-1.0.2/JMeterWebSocketSampler-1.0.2-SNAPSHOT.jar
- wget -P ./apache-jmeter-2.13/lib/ext http://central.maven.org/maven2/org/eclipse/jetty/websocket/websocket-client/9.3.7.RC1/websocket-client-9.3.7.RC1.jar
- wget -P ./apache-jmeter-2.13/lib/ext http://central.maven.org/maven2/org/eclipse/jetty/websocket/websocket-api/9.3.7.RC1/websocket-api-9.3.7.RC1.jar
- wget -P ./apache-jmeter-2.13/lib/ext http://central.maven.org/maven2/org/eclipse/jetty/websocket/websocket-common/9.3.7.RC1/websocket-common-9.3.7.RC1.jar
- wget -P ./apache-jmeter-2.13/lib/ext http://central.maven.org/maven2/org/eclipse/jetty/jetty-http/9.3.7.RC1/jetty-http-9.3.7.RC1.jar
- wget -P ./apache-jmeter-2.13/lib/ext http://central.maven.org/maven2/org/eclipse/jetty/jetty-io/9.3.7.RC1/jetty-io-9.3.7.RC1.jar
- wget -P ./apache-jmeter-2.13/lib/ext http://central.maven.org/maven2/org/eclipse/jetty/jetty-util/9.3.7.RC1/jetty-util-9.3.7.RC1.jar
- wget -c https://s3-${S3_BUCKET_REGION}.amazonaws.com/${S3_BUCKET_NAME}/7688/${UPSTREAM_TRAVIS_BUILD_NUMBER}/7688.tar.gz
before_script:
- ls -al
- cp $TRAVIS_BUILD_DIR/apache-jmeter-2.13/extras/ant-jmeter-1.1.1.jar ./
- cp $TRAVIS_BUILD_DIR/apache-jmeter-2.13/extras/collapse.png ./
- cp $TRAVIS_BUILD_DIR/apache-jmeter-2.13/extras/expand.png ./
- cp -f jmeter.properties $TRAVIS_BUILD_DIR/apache-jmeter-2.13/bin
- ls -al
- mysql -e 'CREATE DATABASE mcslite;'
script:
- jdk_switcher use oraclejdk8
- tar -zxf 7688.tar.gz
- cd ./7688 && node server.js&
- ant -buildfile build.xml -Dtestpath=./ -Dtest=SmokeTest_lite -Djmeter.home="$TRAVIS_BUILD_DIR/apache-jmeter-2.13"
-Dmcslite.host="localhost" -Dmcslite.port="3000" -Dlite.db="NeDB"
- kill -9 $(lsof -t -i:3000)
- rm -f ./report/*.html
- wget -r -O ./7688/configs/db.json https://s3.amazonaws.com/mcsbuildarchive/db.json
- cd ./7688 && node migration.js
- node server.js&
- cd .. && pwd
- ant -buildfile build.xml -Dtestpath=./ -Dtest=SmokeTest_lite -Djmeter.home="$TRAVIS_BUILD_DIR/apache-jmeter-2.13"
-Dlite.host="localhost" -Dlite.port="3000" -Dlite.db="SQL"
- kill -9 $(lsof -t -i:3000)
deploy:
provider: s3
access_key_id: AKIAJ36FA5PQGVMPSIVA
secret_access_key:
secure: sDAx7Ilga1CixLcIPMLg9VKTeYfF5pK4bmQMBAISTlR4r1d7JxMH6xzm7Jn0eEWJ5aKSerJa7bcz8dBsFDRrasVRCF3hg5p3kuCeo5aDBPZ8Z+i+bEcC1dJScvdt4gVivrR+3hB0NeH9bWlNJjC84S1npah3xn+sYCPDy0zLoQKPjZgEJBDC1u/oDC/f49Lcj0VFJ2KJAWTzm9ad1GTEpb9AvKJFGV4t1q3ffBApKmzU7Ad/NZpMOTJyjiK0/Y9FtXsBppbSFiim5PUfgwvVuh6EKTMZFb2ocrxgOrKX7f3eBiNUYSq1sCPDMK0C9lJpBfhJPMHcPky/5XCCzI0A8gW7utR/o/a8l7bcnAQSLBLX9iSr4lTFt/eEe65ENYGWGsai2FsQS2NtJOAMbU0mrlKyI7kIEGXLOKicakJ768wq6EDpk3h02u4jtavk6k3Zi6F8w2CrEdCcJLkXU793/GvJ18V+RJ/XCJJoVMR7/NeWxgwXV64gA1s6dhEsNKOtt4eBQCw/8AUY2JoY76VifBV1z09Upu+P4l3H8cNwWckcdW/BPpR2I1HgylMbpZobl/3WIZLJB1yOQl98Xcx8TbbCTm46REynFErPgL1AWuZPMQzPpLYRd34QDlrYOVBAnCi2pEdkL23A1xe1nkJ7t0nsJa50ZSda0jerG/Vs6/8=
bucket: ${S3_BUCKET_NAME}
skip_cleanup: true
acl: public_read
region: ${S3_BUCKET_REGION}
local_dir: $TRAVIS_BUILD_DIR/report/
on:
all_branches: true
after_deploy:
- cd ./
- chmod 744 parse_result.sh
- sh parse_result.sh || travis_terminate 1;
notifications:
email:
recipients:
on_success: change
on_failure: always