-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy path.travis.yml
30 lines (25 loc) · 999 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
required: sudo
language: java
services:
- docker
jdk:
- openjdk8
#Added to cache gradle dependencies, from the travis java manual
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
script:
- ./gradlew buildTestingImage
- docker run -p 2222:22 -d --name geode-test geode-performance-testing
- ssh-keygen -N "" -f ./id_rsa
- docker cp id_rsa geode-test:/root/.ssh/id_rsa
- docker exec -it geode-test chown root:root /root/.ssh/id_rsa
- docker cp id_rsa.pub geode-test:/root/.ssh/id_rsa.pub
- docker exec -it geode-test chown root:root /root/.ssh/id_rsa.pub
- docker cp id_rsa.pub geode-test:/root/.ssh/authorized_keys
- docker exec -it geode-test chown root:root /root/.ssh/authorized_keys
- ssh -o "StrictHostKeyChecking=no" -i id_rsa -p 2222 root@localhost "pushd /geode-performance; ./gradlew geode-benchmarks:test"