This repository has been archived by the owner on Mar 31, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 34
/
.travis.yml
55 lines (46 loc) · 4.65 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
language: java
jdk:
- oraclejdk8
dist: trusty
cache:
directories:
- "$HOME/google-cloud-sdk/"
- "$HOME/.m2/"
env:
global:
- PATH=$PATH:${HOME}/google-cloud-sdk/bin
# CI_DEPLOY_USERNAME
- secure: "o3AmHiq/ObKOb3K7/o8ESjxDSpdTB+Fz/E42suU+cFKlxh1rD6md0qszXQtQaOcFArx0sCLZeAXVAKD/LNhDOtBWMHhbQAFb9QMLsCCQXuY/N6OnOQIv2i3AzxQZfsChaIpcPspz/K8ro3PVwK6arQ8TBBuG+r8z+aLSwavKoRkZ6+w/mlS18UZKGKsqT2xmqI9R3PlPG/aCDoHK616aNjF7f0vcT+PhzEncGCFYLKYDUO9tM3hrN86XGYzOQTp99yMskn5Md04dJQonnB8hoDsxwXqrGu+F39tQ3pQbt9f+WA1qb2od13+k3YVRieaGQ1WhLUhMZ6lrG0D+2baD7M8VvCnNG4i6wS8O/zeVHY+EWBNoqA5L2xHGsRaIklmA4v5EIKcysc5/kDFpZASUxaTwbynuFhEBPHAI8Vag99qXmKWhlfih4X1WDtqB2nzUiD20lXeMb8EIdNoTGR3L75WUqoPQVViXIoUvoLytDD+hfe7/Bi/whjImaCUf+dzWoc9AkhgiITIof8ijN9LcVBe4E3cB4jTs7w6fsqqj2/xaJ6sj0MKeksVXfOnlr5p1rsXsKnS3RHqBLsgjttO7WiN+IwS1Joh+mCi7iwiBhh9+ScIu7hbafyX4i+zDnwO9wlSe+hjwp4akgs1nOLB3peXfr1eF6IArQf5jZFnfmjw="
# CI_DEPLOY_PASSWORD
- secure: "NXyJ3sxKSvf7EuW9sQ/3PPCM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isjSHAyTl52PTMo64RPjsdVEX9bvqieDgwdiBOKe2vXY0ck/Xg524wakaD7jU5582dpfjRWH+BTHTHr6W167I0Ua4Qa4VhC2hTP6b9A6Wyaqq13dpC/Yz+pPX0/+mQJShDAxwIeCE0Sd3PLUfBqLMmBbuViYW38CbWg7sSupuFAlAwTrW+gQvgY/ypWQZekyU6dNgxZNa665FRnhmEcRyJiLjF+7VX0Iopa8egGtJCejbd4Qj8fIHIIO1dC6XNJQJcjSCwicJwYWPJ9ba3BvWE=
# GPG_PASSPHRASE
- secure: QyqTxtD5VrzSSKFx4gRuhJPb18PIvFg87WP/BJegWaoBtQIrrA/+aWqkw74x+a9Fx8pXbkLq7pEB9M/nNr3Dym0/edGETCJ/MPtYth4QJUredp4g3SDPaCGTpvKyKzON5XyrZ44pwzuPbYACa5NRcoaEIyl3uYR7uonq4kJx+xFDo7SYO8gZq3Vw5owe8tel0GHzpCQl6hjvtd+A6T176JUx8IMgNhq9jJrEZ9sKgTTZGFRMxbU7iyNaTsVYfkDlHhV0h/0ZDT+LPU/jj+bnB3S4UpaHqbRSIv5MgWQYb/mwiE38lZuNtYL66b+MtKh6m8QbGAIuX32ST3RF9+tB19YvGcuujq1uK4bykjxCGMDgQlK0v+kV3PZYzucOoS7YWdIVEXcuTo6HNVNYX4T3WinlNcyhMKKY3L7k3fywfwRRgl/d0VHmOsYDc+XamNkFZYKGjYab3ISn3LmV12nDEZBib/ScM2nN28ycKHSJCYl/g2QR6y9gOIuUzR1HTCPQwPx2pkEknWZdJFsx97HKVqogjAWf0Z7JhPOrT5UeNEGbDl8Xmod/PKNIlomsHbrTy5S4IMJu2IBsQzPjqxdEZltAawO76iOyL2JU0hIlA3OfluIG2FCfegC3a9AFlQCfu53dg207oxQVvTuFPN+WaZ3Frzt+VdjDD9U42ZowTVI=
before_install:
# Decrypt the secrets (only non pull-requests)
- export CREDENTIALS_STORE=$(mktemp -d)
- if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then openssl aes-256-cbc -K $encrypted_3b9f0b9d36d1_key -iv $encrypted_3b9f0b9d36d1_iv -in travis_files/secrets.tar.enc -out travis_files/secrets.tar -d; fi
- if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then tar xvf travis_files/secrets.tar --directory $CREDENTIALS_STORE; fi
# Import the FOSS signing key
- if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then gpg --fast-import ${CREDENTIALS_STORE}/spydra_sign_keys; fi
- if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then export GOOGLE_APPLICATION_CREDENTIALS=${CREDENTIALS_STORE}/spydra_foss_ci.json; fi
# If the SDK is not already cached, download it and install it into path
- gcloud version || true
- if [ ! -d "$HOME/google-cloud-sdk/bin" ]; then rm -rf $HOME/google-cloud-sdk; export CLOUDSDK_CORE_DISABLE_PROMPTS=1; curl https://sdk.cloud.google.com | bash; fi
- source $HOME/google-cloud-sdk/path.bash.inc
- gcloud components install --quiet beta || true
- gcloud version
- if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then gcloud auth activate-service-account --key-file $GOOGLE_APPLICATION_CREDENTIALS; fi
branches:
only:
- master
# Skipping the install step as the script step will do all we need.
install: true
script:
# Run on pull requests (encrypted data not available for pull requests)
- 'if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then mvn clean verify; fi'
# Run on merges to master
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then mvn deploy -P release,install-init-scripts --settings=travis_files/settings.xml; fi'
notifications:
email: false