-
Notifications
You must be signed in to change notification settings - Fork 9
/
.travis.yml
19 lines (19 loc) · 1.02 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
language: java
jdk:
- oraclejdk8
install: /bin/true # skip gradle assemble
before_install:
- wget https://releases.hashicorp.com/vault/0.3.1/vault_0.3.1_linux_386.zip
- unzip vault_0.3.1_linux_386.zip
- ./vault server -dev &
- sleep 1
- VAULT_ADDR='http://127.0.0.1:8200' ./vault auth-enable app-id
- VAULT_ADDR='http://127.0.0.1:8200' ./vault write auth/app-id/map/app-id/test-app-id value=root display_name=foo
- VAULT_ADDR='http://127.0.0.1:8200' ./vault write auth/app-id/map/user-id/test-user-id value=test-app-id
- VAULT_ADDR='http://127.0.0.1:8200' ./vault write secret/keyOne value=secretNumberOne
- VAULT_ADDR='http://127.0.0.1:8200' ./vault write secret/keyTwo value=secretNumberTwo
- VAULT_ADDR='http://127.0.0.1:8200' ./vault write secret/keyThree value=secretNumberThree
- VAULT_ADDR='http://127.0.0.1:8200' ./vault write secret/test/config one=1 two=2 three=3
- echo "sonatypeUsername=someUsername" > gradle.properties
- echo "sonatypePassword=somePassword" >> gradle.properties
script: ./bin/gradlew check