forked from jfrog/jfrog-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
87 lines (81 loc) · 2.91 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# ~~~ How to use Appveyor ~~~
# Preconditions: JFrog Platform instance
#
# = Trigger tests on commits =
# 1. Create a new project in Appveyor and choose jfrog-cli-go.
# 2. In project settings, copy the 'Webhook URL' and create a new 'Push events' Webhook in Github.
#
# = Configure Artifactory =
# 1. Create all necessary repositories for tests according to the README.
# 2. Create a remote Nuget repository in Artifactory:
# A. Repository Key: choco
# B. Url: https://chocolatey.org
# * The test uses Chocolatey package manager to download Gradle Nuget package through Artifactory's cache.
#
# = Override credentials in Appveyor in case of a fork =
# 1. In the project at Appveyor - Go to settings -> Environment.
# 2. Override 'JFROG_CLI_RT_URL' and 'JFROG_CLI_RT_USER'
# 3. Override 'JFROG_CLI_RT_PASSWORD' with variable encryption.
image:
- Visual Studio 2019
build: off
skip_tags: true
stack: go 1.14, node 8, jdk 8
clone_folder: c:\gopath\src\github.com\jfrog\jfrog-cli
environment:
GOPATH: c:\gopath
# Added in order to prevent fetching the outdated dependencies versions from go cache.
GOPROXY: direct
GO111MODULE: on
CGO_ENABLED: 0
JAVA_HOME: C:\Program Files\Java\jdk1.8.0
GRADLE_OPTS: -Dorg.gradle.daemon=false
# .NET CLI version
CLI_VERSION: Latest
JFROG_CLI_RT_URL:
secure: RIh0gGFDn2JAnLUEEqLsQm0ihToJ6/4LiR411QpvqDgYYE7Y4Eif2e+wYndvHXnW
JFROG_CLI_RT_USER:
secure: YEB5Wiv9a2vNpUhy+MfL+A==
JFROG_CLI_RT_PASSWORD:
secure: Um8o75MQIieSavIemF4ySA==
JFROG_CLI_DIST_URL:
secure: RIh0gGFDn2JAnLUEEqLsQrfLmtDrzDd5Qphea4gOE0Lu1Uz2Xa/y+D0Mld917gwy
COMMON_TESTS_ARGS:
go test -v github.com\jfrog\jfrog-cli --timeout 0 --rt.url="%JFROG_CLI_RT_URL%" --rt.user="%JFROG_CLI_RT_USER%" --rt.password="%JFROG_CLI_RT_PASSWORD%"
matrix:
- VET:
TEST_SUIT:
go vet github.com\jfrog\jfrog-cli &&
.\\build\\build.bat &&
.\\jfrog.exe --version
- ARTIFACTORY_TESTS:
TEST_SUIT:
"%COMMON_TESTS_ARGS% --test.artifactory=true"
- NPM_TESTS:
TEST_SUIT:
"%COMMON_TESTS_ARGS% --test.npm=true"
- MAVEN_TESTS:
TEST_SUIT:
"%COMMON_TESTS_ARGS% --test.maven=true"
- GRADLE_TESTS:
TEST_SUIT:
"choco install gradle -s %JFROG_CLI_RT_URL%/api/nuget/choco -u %JFROG_CLI_RT_USER% -p %JFROG_CLI_RT_PASSWORD% &&
%COMMON_TESTS_ARGS% --test.gradle=true"
- NUGET_TESTS:
TEST_SUIT:
"%COMMON_TESTS_ARGS% --test.nuget=true"
- GO_TESTS:
TEST_SUIT:
"%COMMON_TESTS_ARGS% --test.go=true"
- PIP_TESTS:
TEST_SUIT:
"C:\\Python37-x64\\python -m venv pip-venv &&
%COMMON_TESTS_ARGS% --test.pip=true --rt.pipVirtualEnv=C:\\gopath\\src\\github.com\\jfrog\\jfrog-cli\\pip-venv\\Scripts"
- DISTRIBUTION_TESTS:
TEST_SUIT:
"%COMMON_TESTS_ARGS% --rt.distUrl=%JFROG_CLI_DIST_URL% --test.distribution=true"
- PLUGINS_TESTS:
TEST_SUIT:
"%COMMON_TESTS_ARGS% --test.plugins=true"
test_script:
- "%TEST_SUIT%"