-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
^ FFmpeg Shared update ^ KDE Connect update * minor ffmpeg fixes ^ update .appveyor.yml
- Loading branch information
1 parent
e8a0f22
commit 3c3e523
Showing
7 changed files
with
110 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,111 +1,113 @@ | ||
# AU template: https://github.com/majkinetor/au-packages-template | ||
|
||
version: "{build}" | ||
version: '{build}' | ||
max_jobs: 1 | ||
# History plugin requires complete log | ||
#clone_depth: 5 | ||
branches: | ||
only: | ||
- main | ||
only: | ||
- main | ||
#build: | ||
# verbosity: minimal | ||
|
||
environment: | ||
# Set au version to use or omit to use the latest. Specify branch name to use development version from Github | ||
au_version: | ||
au_push: true | ||
# Force test: use 1 to test all, or N to split testing into N groups | ||
au_test_groups: 1 | ||
|
||
# Github token to commit pushed packages to repository | ||
github_user_repo: AndreAugustoAAQ/chocolatey-packages | ||
github_api_key: | ||
secure: bQZ5ALwy3ddiShuYLHuQI6JgdGeiP0fTVgHEpJT+3Hlk1yQ2oc1YCh6o9TnIlPrw #https://ci.appveyor.com/tools/encrypt | ||
|
||
# Mail credentials - for error notifications | ||
mail_user: | ||
secure: YOUR_EMAIL_ACCOUNT_HERE_ENCRYPTED_STRING #https://ci.appveyor.com/tools/encrypt | ||
mail_pass: | ||
secure: YOUR_EMAIL_PASSWORD_HERE_ENCRYPTED_STRING #https://ci.appveyor.com/tools/encrypt | ||
mail_server: smtp.gmail.com | ||
mail_port: 587 | ||
mail_enablessl: true | ||
|
||
# ID of the gist used to save run results - create a gist under the github_user (secret or not) and grab the id - https://gist.github.com/name/id | ||
# Optional, leave empty to create anonymous gist | ||
gist_id: 504f8c83b21394b7dbf71b9da54e191c | ||
|
||
# Force test: gist id for test results | ||
gist_id_test: | ||
|
||
# Chocolatey API key - to push updated packages | ||
api_key: | ||
secure: q3lIUEAwjbbTYbRneCUrVjMNZvGas4iSEMPYsnMd7OwwrKzRKMH9zbqS6k7F2oOf # https://ci.appveyor.com/tools/encrypt | ||
# Set au version to use or omit to use the latest. Specify branch name to use development version from Github | ||
au_version: master | ||
au_push: true | ||
# Force test: use 1 to test all, or N to split testing into N groups | ||
au_test_groups: 1 | ||
|
||
# Github token to commit pushed packages to repository | ||
github_user_repo: AndreAugustoAAQ/chocolatey-packages | ||
github_api_key: | ||
secure: bQZ5ALwy3ddiShuYLHuQI6JgdGeiP0fTVgHEpJT+3Hlk1yQ2oc1YCh6o9TnIlPrw | ||
|
||
github_username: AndreAugustoAAQ | ||
github_password: | ||
secure: RiyzqOCfkpMzFG3hobSCHw== | ||
|
||
# Mail credentials - for error notifications | ||
mail_user: | ||
mail_pass: | ||
secure: | ||
mail_server: smtp.gmail.com | ||
mail_port: 587 | ||
mail_enablessl: true | ||
|
||
# ID of the gist used to save run results - create a gist under the github_user (secret or not) and grab the id - https://gist.github.com/name/id | ||
# Optional, leave empty to create anonymous gist | ||
gist_id: 504f8c83b21394b7dbf71b9da54e191c | ||
|
||
# Force test: gist id for test results | ||
gist_id_test: | ||
|
||
# Chocolatey API key - to push updated packages | ||
api_key: | ||
secure: q3lIUEAwjbbTYbRneCUrVjMNZvGas4iSEMPYsnMd7OwwrKzRKMH9zbqS6k7F2oOf | ||
|
||
init: | ||
- git config --global user.email "[email protected]" | ||
- git config --global user.name "André Augusto" | ||
- git config --global core.safecrlf false | ||
|
||
install: | ||
- ps: "Get-CimInstance win32_operatingsystem -Property Caption, OSArchitecture, Version | fl Caption, OSArchitecture, Version" | ||
- ps: $PSVersionTable | ||
- git --version | ||
- choco --version | ||
- ps: | | ||
git clone -q https://github.com/majkinetor/au.git $Env:TEMP/au | ||
. "$Env:TEMP/au/scripts/Install-AU.ps1" $Env:au_version | ||
- ps: | | ||
"Build info" | ||
' {0,-20} {1}' -f 'SCHEDULED BUILD:', ($Env:APPVEYOR_SCHEDULED_BUILD -eq 'true') | ||
' {0,-20} {1}' -f 'FORCED BUILD:' , ($Env:APPVEYOR_FORCED_BUILD -eq 'true') | ||
' {0,-20} {1}' -f 'RE BUILD:' , ($Env:APPVEYOR_RE_BUILD -eq 'true') | ||
# Uncomment the below line if you are using any of the functions from chocolatey-core.extension - https://chocolatey.org/packages/chocolatey-core.extension. Ensure you also have it listed in your package's dependencies | ||
# - cinst chocolatey-core.extension | ||
- ps: 'Get-CimInstance win32_operatingsystem -Property Caption, OSArchitecture, Version | fl Caption, OSArchitecture, Version' | ||
- ps: $PSVersionTable | ||
- git --version | ||
- choco --version | ||
- ps: | | ||
git clone -q https://github.com/majkinetor/au.git $Env:TEMP/au | ||
. "$Env:TEMP/au/scripts/Install-AU.ps1" $Env:au_version | ||
- ps: | | ||
"Build info" | ||
' {0,-20} {1}' -f 'SCHEDULED BUILD:', ($Env:APPVEYOR_SCHEDULED_BUILD -eq 'true') | ||
' {0,-20} {1}' -f 'FORCED BUILD:' , ($Env:APPVEYOR_FORCED_BUILD -eq 'true') | ||
' {0,-20} {1}' -f 'RE BUILD:' , ($Env:APPVEYOR_RE_BUILD -eq 'true') | ||
- cinst chocolatey-core.extension #required for several packages | ||
|
||
build_script: | ||
- ps: | | ||
$ErrorActionPreference = 'Continue' | ||
if ($Env:APPVEYOR_PROJECT_NAME -like '*test*') { ./test_all.ps1 "random $Env:au_test_groups"; return } | ||
if ( ($Env:APPVEYOR_SCHEDULED_BUILD -ne 'true') -and ($Env:APPVEYOR_FORCED_BUILD -ne 'true') ) { | ||
switch -regex ($Env:APPVEYOR_REPO_COMMIT_MESSAGE) | ||
{ | ||
'\[AU (.+?)\]' { $forced = $Matches[1] } | ||
'\[PUSH (.+?)\]' { | ||
$packages = $Matches[1] -split ' ' | ||
Write-Host "PUSHING PACKAGES: $packages" | ||
foreach ($package in $packages) { | ||
Write-Host ("{0}`n{1}`n" -f ('-'*60), "PACKAGE: $package") | ||
$package_dir = ls -recurse | ? { $_.Name -eq "$package.nuspec"} | select -First 1 | % Directory | ||
if (!$package_dir) { Write-Warning "Can't find package '$package'"; continue } | ||
pushd $package_dir | ||
if (Test-Path update.ps1 -ea 0) { ./update.ps1 } | ||
choco pack; Push-Package; | ||
popd | ||
} | ||
return | ||
} | ||
} | ||
} | ||
./update_all.ps1 -ForcedPackages $forced | ||
7z a au_temp.zip $Env:TEMP\chocolatey\au\* | ||
- ps: | | ||
$ErrorActionPreference = 'Continue' | ||
if ($Env:APPVEYOR_PROJECT_NAME -like '*test*') { ./test_all.ps1 "random $Env:au_test_groups"; return } | ||
if ( ($Env:APPVEYOR_SCHEDULED_BUILD -ne 'true') -and ($Env:APPVEYOR_FORCED_BUILD -ne 'true') ) { | ||
switch -regex ($Env:APPVEYOR_REPO_COMMIT_MESSAGE) | ||
{ | ||
'\[AU (.+?)\]' { $forced = $Matches[1] } | ||
'\[PUSH (.+?)\]' { | ||
$packages = $Matches[1] -split ' ' | ||
Write-Host "PUSHING PACKAGES: $packages" | ||
foreach ($package in $packages) { | ||
Write-Host ("{0}`n{1}`n" -f ('-'*60), "PACKAGE: $package") | ||
$package_dir = ls -recurse | ? { $_.Name -eq "$package.nuspec"} | select -First 1 | % Directory | ||
if (!$package_dir) { Write-Warning "Can't find package '$package'"; continue } | ||
pushd $package_dir | ||
if (Test-Path update.ps1 -ea 0) { ./update.ps1 } | ||
choco pack; Push-Package; | ||
popd | ||
} | ||
return | ||
} | ||
} | ||
} | ||
./update_all.ps1 -ForcedPackages $forced | ||
7z a au_temp.zip $Env:TEMP\chocolatey\au\* | ||
artifacts: | ||
- path: update_info.xml | ||
- path: Update-AUPackages.md | ||
- path: au_temp.zip | ||
- path: update_info.xml | ||
- path: Update-AUPackages.md | ||
- path: au_temp.zip | ||
|
||
notifications: | ||
- provider: Email | ||
to: $(mail_user) | ||
on_build_success: false | ||
on_build_failure: true | ||
on_build_status_changed: true | ||
- provider: Email | ||
to: $(mail_user) | ||
on_build_success: false | ||
on_build_failure: true | ||
on_build_status_changed: true | ||
|
||
#on_finish: | ||
#- ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters