forked from googleapis/google-cloud-java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
45 lines (38 loc) · 1.52 KB
/
appveyor.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
# build version
version: '{build}'
# branches to build
branches:
# blacklist
except:
- gh-pages
- travis
- appveyor
# Do not build on tags
skip_tags: true
# enviroment settings
environment:
matrix:
- JAVA_HOME: C:\Program Files\Java\jdk1.7.0
GOOGLE_CLOUD_PROJECT:
secure: hbX+cAXrU588+iTMKyzGOQ==
SECRET:
secure: P4H6q90j3t0GC527rKUrpMzYs1z4aqzMh7pfNVqr2ZIJB8H07oeaD0zlosK8An15VQw7q5WTWImiU+yzX1aErct+k2uIah0iArGuEcrKOtQV/4JD10P7QHPsSMXdDXFzbDXsDi6Wf4UDQH7tFGPNU+VrCcXPMfkIlMkYg5tD10TktjdCEJ6YNw0J6SldFeDHDyBkVbmP6SAiQTpqjqO3NDI8i15mH84CWNT90khz4t8Wnhyvnv+J3u89w9Lp/AFoJfkrK2fjDUhR3K1flyG689Skyng2NCSF5wZcq5IPGMRqR+18js4MykeybPVNmEtBBZh+rzPey42oxtQPIX9I6KwPfkXlu2tXuPcbPCpHH5Y=
# install required tools (maven, secure-file, encrypted files)
install:
- cmd: echo %JAVA_HOME%
- cmd: echo %M2_HOME%
- ps: $origin = git config --get remote.origin.url; git clone --quiet -b appveyor $origin appveyor
- cmd: nuget install secure-file -ExcludeVersion
- cmd: IF DEFINED SECRET (secure-file\tools\secure-file -decrypt appveyor\key.json.enc -secret %SECRET% -out appveyor\key.json)
- cmd: IF DEFINED SECRET (SET GOOGLE_APPLICATION_CREDENTIALS=%APPVEYOR_BUILD_FOLDER%\appveyor\key.json)
- cmd: ECHO %GOOGLE_APPLICATION_CREDENTIALS%
# build and install artifacts
build_script:
- mvn clean install -DskipTests
# verify artifacts
test_script:
- IF DEFINED APPVEYOR_PULL_REQUEST_NUMBER (mvn verify -DskipITs) ELSE (mvn verify)
# preserve dependencies between builds
cache:
- C:\maven\
- C:\Users\appveyor\.m2