-
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.
- Loading branch information
Showing
17 changed files
with
175 additions
and
24 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
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,140 @@ | ||
# Build image. | ||
image: Visual Studio 2017 | ||
# Build image. Creates 4 build jobs | ||
image: | ||
- Visual Studio 2017 | ||
|
||
# XXX - add output of git describe instead? v-2-10-0-rc-36-g04af0b4 | ||
# XXX isn't it 2.11.0? | ||
version: 2.10.0-{build} | ||
version: -v2.10.0-{build} | ||
|
||
# Only build the 'privat' branch. | ||
branches: | ||
only: | ||
- privat | ||
|
||
# | ||
# Skipping commits affecting these files | ||
# | ||
# XXX - add all the others | ||
skip_commits: | ||
files: | ||
- '**/*.README.*' | ||
- '**/*.md' | ||
- '**/*.txt' | ||
- '**/*.png' | ||
- '**/*.jpg' | ||
- '**/*.html' | ||
|
||
environment: | ||
global: | ||
CL: -nologo | ||
LINK: -nologo | ||
URL: "https://ci.appveyor.com/api/projects/%APPVEYOR_ACCOUNT_NAME%/pthreads-win32/artifacts/PTHREADS-BUILT%APPVEYOR_BUILD_VERSION%.zip" | ||
|
||
matrix: | ||
- TOOLSET: MSVC1910 #-1919 = Visual Studio 15.0/2017 (v141 toolset) | ||
ARCH: x86 | ||
- TOOLSET: MSVC1910 | ||
ARCH: x86_amd64 | ||
- TOOLSET: MSVC1900 # Visual Studio 14.0/2015 (v140 toolset) | ||
ARCH: x86 | ||
- TOOLSET: MSVC1900 | ||
ARCH: x86_amd64 | ||
- TOOLSET: MSVC1900 | ||
ARCH: x86_arm | ||
- TOOLSET: MSVC1900 | ||
ARCH: amd64_arm | ||
|
||
matrix: | ||
# | ||
# Immediately finish build if one of the above jobs fails. | ||
# | ||
fast_finish: true | ||
# allow_failures: | ||
# - TOOLSET: MSVC1900 | ||
# ARCH: x86_arm | ||
# - TOOLSET: MSVC1900 | ||
# ARCH: amd64_arm | ||
# don't bother building these... | ||
exclude: | ||
- TOOLSET: MSVC1900 | ||
ARCH: x86_arm | ||
- TOOLSET: MSVC1900 | ||
ARCH: amd64_arm | ||
|
||
init: | ||
# Carriage returns can be bad | ||
- cmd: git config --global core.autocrlf input | ||
|
||
clone_folder: 'c:\%APPVEYOR_PROJECT_NAME%' | ||
|
||
# XXX - this will be the root prebuild output folder | ||
# Preserve "PTHREADS-BUILT%APPVEYOR_BUILD_VERSION%" directory in the root of build folder | ||
cache: PTHREADS-BUILT%APPVEYOR_BUILD_VERSION% | ||
|
||
install: | ||
# If there's a newer build queued for the same PR, cancel this one | ||
# XXX - change this to "If there's a newer build queued at all" | ||
- ps: if ($env:APPVEYOR_PULL_REQUEST_NUMBER -and $env:APPVEYOR_BUILD_NUMBER -ne ((Invoke-RestMethod ` | ||
https://ci.appveyor.com/api/projects/$env:APPVEYOR_ACCOUNT_NAME/$env:APPVEYOR_PROJECT_SLUG/history?recordsNumber=50).builds | ` | ||
Where-Object pullRequestId -eq $env:APPVEYOR_PULL_REQUEST_NUMBER)[0].buildNumber) { ` | ||
throw "There are newer queued builds for this pull request, failing early." } | ||
|
||
# - ps: $url="https://ci.appveyor.com/api/projects/$env:APPVEYOR_ACCOUNT_NAME/pthreads-win32/artifacts/PTHREADS-BUILT$env:APPVEYOR_BUILD_VERSION.zip" | ||
# - ps: if ($env:ARCH -eq "x86_amd64") {Invoke-WebRequest $env:URL} | ||
# - ps: if ($env:ARCH -eq "x86_amd64") {7z.exe x "PTHREADS-BUILT$env:APPVEYOR_BUILD_VERSION.zip"} | ||
# XXX - fix me! | ||
- cmd: 'if "%ARCH%"=="x86_amd64" appveyor DownloadFile "%URL%" && 7z.exe x PTHREADS-BUILT%APPVEYOR_BUILD_VERSION%.zip > NUL' | ||
|
||
# set compiler environment | ||
- cmd: if "%TOOLSET%"=="MSVC1910" call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" %ARCH% | ||
- cmd: if not "%TOOLSET%"=="MSVC1910" call "%VS140COMNTOOLS%..\..\VC\vcvarsall.bat" %ARCH% | ||
|
||
build_script: | ||
- cmd: nmake all | ||
- cmd: nmake install | ||
- cmd: nmake /nologo install DEPLOY=1 | ||
|
||
test_script: | ||
- cmd: cd tests | ||
- cmd: nmake /nologo clean VC | ||
- cmd: nmake /nologo VC NO_DEPS=1 BUGGY=1 TESTS="exception1 exception2 exception3_0 exception3 sequence1" & exit /b 0 | ||
# - cmd: nmake /nologo clean all-tests | ||
# - cmd: nmake /nologo -DEXHAUSTIVE clean all-tests | ||
# Warning: MORE_EXHAUSTIVE takes a few hours to complete! | ||
# - cmd: nmake /nologo -DEXHAUSTIVE clean all-tests MORE_EXHAUSTIVE=1 | ||
|
||
after_test: | ||
- ps: | | ||
$env:PATH = 'C:\msys64\usr\bin;' + $env:PATH | ||
Invoke-WebRequest -Uri 'https://codecov.io/bash' -OutFile codecov.sh | ||
bash codecov.sh -f "coverage.xml" -t 1eef4895-a479-44ae-aade-af4d1c5dc286 | ||
artifacts: | ||
# IMPORTANT! If the artifact path starts with * surround the value with single quotes. | ||
|
||
# WIP: Push the entire PTHREADS-BUILT-{APPVEYOR_BUILD_NUMBER} folder as a single zip archive. | ||
- path: 'PTHREADS-BUILT%APPVEYOR_BUILD_VERSION%' | ||
|
||
|
||
notifications: | ||
- provider: GitHubPullRequest | ||
auth_token: | ||
secure: VwyaJwle6Sl0AuOebFpGCIXiPyC2aOZjH0MZe+i8YlFib7AcqvDkbZQUqKbVuHK5 | ||
template: "{{#passed}}:white_check_mark:{{/passed}}{{#failed}}:x:{{/failed}} [Build {{&projectName}} {{buildVersion}} {{status}}]({{buildUrl}}) (commit {{commitUrl}} by @{{&commitAuthorUsername}})" | ||
|
||
# | ||
# One day... | ||
# | ||
# deploy: | ||
# Deploying to NuGet feed | ||
# - provider: NuGet | ||
# server: https://my.nuget.server/feed | ||
# api_key: | ||
# secure: FYWX6NfjZIVw== | ||
# skip_symbols: false | ||
# symbol_server: https://your.symbol.server/feed | ||
# artifact: MyPackage.nupkg | ||
|
||
# Deploy to GitHub Releases | ||
# - provider: GitHub | ||
# artifact: /.*\.nupkg/ # upload all NuGet packages to release assets | ||
# draft: false | ||
# prerelease: false | ||
# on: | ||
# branch: master # release from master branch only | ||
# appveyor_repo_tag: true # deploy on tag push only |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,7 +33,9 @@ | |
* | ||
*/ | ||
|
||
#ifndef _MSC_VER | ||
#include "../config.h" | ||
#endif | ||
|
||
#include "pthread.h" | ||
#include "sched.h" | ||
|
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 |
---|---|---|
|
@@ -33,7 +33,9 @@ | |
* | ||
*/ | ||
|
||
#ifndef _MSC_VER | ||
#include "../config.h" | ||
#endif | ||
|
||
enum { | ||
OLD_WIN32CS, | ||
|
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
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