forked from sscarduzio/elasticsearch-readonlyrest-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
49 lines (34 loc) · 1 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
language: java
sudo: required
services:
- docker
jdk:
- oraclejdk8
script: bin/build.sh
deploy:
provider: script
script: ci/ci-deploy.sh
skip_cleanup: true
on:
all_branches: true
env:
- GH_USER_NAME=Travis CI
before_script:
- sudo sysctl -w vm.max_map_count=262144
after_success:
- |
declare -r SSH_FILE="$HOME/.ssh/gh_identity)"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Decrypt the file containing the private key
openssl aes-256-cbc \
-K $encrypted_bf4db9d5783b_key -iv $encrypted_bf4db9d5783b_iv \
-in ".travis/github_deploy_key.enc" \
-out "$SSH_FILE" -d
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Enable SSH authentication
chmod 600 "$SSH_FILE" \
&& printf "%s\n" \
"Host github.com" \
" IdentityFile $SSH_FILE" \
" LogLevel ERROR" >> ~/.ssh/config