This repository has been archived by the owner on Jul 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AppVeyor: fully automated build of 32- and 64-bit Windows binaries
For pull requests and pushes to master just build 32-bit binaries and do not store artifacts. Whenever a tag is pushed to the "release" branch - produce full set of 32-bit and 64-bit binaries, create a GitHub release (if does not exist already) and attach the binaries to the release. Issues open: http://bit.ly/twoBuilds AppVeyor starts two builds in response to the "new commit" and "new tag" events. http://bit.ly/bad_build_success Parse error in the appveyor.yml causes the system to silently ignore the commit. http://bit.ly/appvLessDup Is there a way to remove duplicate stanzas from both configurations?
- Loading branch information
Showing
1 changed file
with
88 additions
and
35 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,35 +1,88 @@ | ||
version: "{build}" | ||
|
||
build: off | ||
|
||
cache: | ||
- c:\Users\appveyor\.node-gyp | ||
- '%AppData%\npm-cache' | ||
|
||
environment: | ||
SKIP_SASS_BINARY_DOWNLOAD_FOR_CI: true | ||
matrix: | ||
- nodejs_version: 0.10 | ||
- nodejs_version: 0.12 | ||
- nodejs_version: 1 | ||
- nodejs_version: 2 | ||
- nodejs_version: 3 | ||
- nodejs_version: 4 | ||
|
||
install: | ||
- ps: Install-Product node $env:nodejs_version | ||
- node --version | ||
- npm --version | ||
- git submodule update --init --recursive | ||
- npm install --msvs_version=2013 | ||
|
||
test_script: npm test | ||
|
||
on_success: | ||
# Save artifact with full qualified names of binding.node | ||
# (which we use in node-sass-binaries repo) | ||
- ps: Get-ChildItem .\vendor\**\*.node | % ` | ||
{ | ||
Push-AppveyorArtifact $_.FullName -FileName | ||
(($_.FullName.Split('\\') | Select-Object -Last 2) -join '_') | ||
} | ||
- | ||
branches: | ||
only: | ||
- release | ||
|
||
configuration: release | ||
|
||
platform: | ||
- x64 | ||
- x86 | ||
|
||
version: "{build}" | ||
|
||
build: off | ||
|
||
cache: | ||
- c:\Users\appveyor\.node-gyp | ||
- '%AppData%\npm-cache' | ||
|
||
environment: | ||
SKIP_SASS_BINARY_DOWNLOAD_FOR_CI: true | ||
GITHUB_API_KEY: | ||
secure: tt+p58W9Q49faww/o0CODJI8e++YEX5THVlpXlRIigO4xHjE8NKigi0oxr1b2PJE | ||
matrix: | ||
- nodejs_version: 0.10 | ||
- nodejs_version: 0.12 | ||
- nodejs_version: 1 | ||
- nodejs_version: 2 | ||
- nodejs_version: 3 | ||
- nodejs_version: 4 | ||
|
||
install: | ||
- ps: Install-Product node $env:nodejs_version $env:platform | ||
- node --version | ||
- npm --version | ||
- git submodule update --init --recursive | ||
- npm install --msvs_version=2013 | ||
|
||
test_script: npm test | ||
|
||
before_deploy: | ||
# Save artifact with full qualified names of binding.node | ||
# (which we use in node-sass-binaries repo) | ||
- ps: Get-ChildItem .\vendor\**\*.node | % { Push-AppveyorArtifact $_.FullName -FileName (($_.FullName.Split('\\') | Select-Object -Last 2) -join '_') } | ||
|
||
|
||
deploy: | ||
- provider: GitHub | ||
description: $(APPVEYOR_REPO_COMMIT_MESSAGE_EXTENDED) | ||
artifact: /.*binding\.node/ # upload all NuGet packages to release assets | ||
auth_token: | ||
secure: tt+p58W9Q49faww/o0CODJI8e++YEX5THVlpXlRIigO4xHjE8NKigi0oxr1b2PJE | ||
on: | ||
branch: release # release from master branch only | ||
appveyor_repo_tag: true # deploy on tag push only | ||
|
||
- | ||
configuration: testing | ||
|
||
platform: | ||
- x86 | ||
|
||
version: "{build}" | ||
|
||
build: off | ||
|
||
cache: | ||
- c:\Users\appveyor\.node-gyp | ||
- '%AppData%\npm-cache' | ||
|
||
environment: | ||
SKIP_SASS_BINARY_DOWNLOAD_FOR_CI: true | ||
matrix: | ||
- nodejs_version: 0.10 | ||
- nodejs_version: 0.12 | ||
- nodejs_version: 1 | ||
- nodejs_version: 2 | ||
- nodejs_version: 3 | ||
- nodejs_version: 4 | ||
|
||
install: | ||
- ps: Install-Product node $env:nodejs_version $env:platform | ||
- node --version | ||
- npm --version | ||
- git submodule update --init --recursive | ||
- npm install --msvs_version=2013 | ||
|
||
test_script: npm test |