-
-
Notifications
You must be signed in to change notification settings - Fork 108
/
.travis.yml
43 lines (35 loc) · 1.26 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
# use https://lint.travis-ci.org/ to check validity
# use https://gist.github.com/tgrrtt/96b206c22b82f92ce563 to see examples
# use https://github.com/travis-ci/artifacts#installation for artifacts guide
# make the s3 directory public in aws give access to the artifacts
language: java
sudo: false
script: mvn install -DskipTests=true
jdk:
- openjdk8
# deploy:
# provider: s3
# access_key_id: "AKIAJ6CQ5PPESWGSKNXA"
# secret_access_key: $AWS_SECRET_KEY
# bucket: "mrl-bucket-02"
# skip_cleanup: true
# local_dir: "dist/current"
# region: "us-east-1"
# on:
# all_branches: true
# after_deploy:
# - pwd
# - ls
# - if [ ! -f "fail.txt" ]; then travis_terminate 1; fi
env:
global:
# AWS - secure: CPq2oomYvrYnhzd+H4HU2T0NfjGO48MvlJ/UWqvrD4j6IXIe2ybrwRWSJfcfbFgZA5csHBEF2VNDgZlGhDV5aSVyBVkqBM4LfhvGVZo31Z2QhFVm5pTV45LRaiqSLCi74RgJEsFJ9viW+MROoKtMbFzvP3kVqWm4VaAWJK5c4cA=
# - 'SFTP_USER=[user]'
# - 'SFTP_PASSWORD=[password]'
# - 'SFTP_KEY=[base64-encoded-rsa-key]'
# after_success:
# - echo "${SFTP_KEY}" | base64 --decode >/tmp/sftp_rsa
# - curl --ftp-create-dirs
# -T filename
# --key /tmp/sftp_rsa
# sftp://${SFTP_USER}@example.com/directory/filename