-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathappveyor.yml
63 lines (59 loc) · 2.17 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
version: 1.0.{build}
skip_tags: true
pull_requests:
do_not_increment_build_number: true
image:
- ubuntu1804
- Visual Studio 2017
matrix:
fast_finish: true
init:
- ps: |
"APPVEYOR_REPO_BRANCH = $env:APPVEYOR_REPO_BRANCH"
"APPVEYOR_PULL_REQUEST_NUMBER = $env:APPVEYOR_PULL_REQUEST_NUMBER"
"APPVEYOR_REPO_COMMIT_MESSAGE = $env:APPVEYOR_REPO_COMMIT_MESSAGE"
"OS = $env:OS"
- sh: export PATH=/home/appveyor/.local/bin:$PATH
environment:
POWERSHELL_TELEMETRY_OPTOUT: 1
# Avoid expensive initialization of dotnet cli, see: http://donovanbrown.com/post/Stop-wasting-time-during-NET-Core-builds
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
PowershellGalleryKey:
secure: pRPJORXDzl7G6sU5Qz+K+tvDpzwYY+KgXDzAkY31Zb6cxKUJFFzYvzci7+Xgt0xN
GitHubKey:
secure: 64LLgggYJc3bb1D7G22KGYQFHknuWvoFZAUewRfX0QXV8gBjG97WwwU9lC2HNQ99
install:
- ps: |
import-module powershellget
Install-module PowerShellGet -force -AllowClobber -SkipPublisherCheck -Scope CurrentUser
Remove-Module PowerShellGet -Force
Import-Module PowerShellGet -Force
Get-PackageProvider -Name NuGet -ForceBootstrap
install-module pester -force -AllowClobber -SkipPublisherCheck -Scope CurrentUser
install-module PSScriptAnalyzer -force -AllowClobber -SkipPublisherCheck -Scope CurrentUser
- sh: sudo curl -L "https://github.com/docker/compose/releases/download/1.23.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
- sh: sudo chmod +x /usr/local/bin/docker-compose
- sh: pip install --user ansible-tower-cli
test_script:
- ps: |
if($env:OS -ne "Windows_NT") {
.\Invoke-Build.ps1 IntegrationTests
}
build_script:
- ps: |
if( $env:APPVEYOR_REPO_BRANCH -eq "master" -and !$env:APPVEYOR_PULL_REQUEST_NUMBER -and $env:APPVEYOR_REPO_COMMIT_MESSAGE -notlike "skip: *" -and $env:OS -eq "Windows_NT" ) {
.\Invoke-Build.ps1 publish
} else {
.\Invoke-Build.ps1 build,test
}
artifacts:
- path: AnsibleTower.zip
deploy:
- provider: GitHub
tag: $(APPVEYOR_BUILD_VERSION)
auth_token:
secure: 64LLgggYJc3bb1D7G22KGYQFHknuWvoFZAUewRfX0QXV8gBjG97WwwU9lC2HNQ99
draft: true
on:
APPVEYOR_REPO_BRANCH: master
OS: Windows_NT