-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows Support and AppVeyor CI #173
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
c1766f4
MSVC: long double == long
ax3l cced9ac
CMake: Windows Support
ax3l ac71be8
Download Samples: Powershell Script
ax3l c7e0b3f
AppVeyor: Windows CI
ax3l 760a39a
README: Badge AppVeyor
ax3l c55f96f
MSVC 2015: Disable Attribute Val
ax3l File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
@@ -0,0 +1,140 @@ | ||
environment: | ||
matrix: | ||
# Only VS2008 [vc9] (no C++11) available for Python 2.7 | ||
# - TARGET_ARCH: x86 | ||
# CONDA_PY: 27 | ||
# CONDA_INSTALL_LOCN: C:\\Miniconda | ||
# APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2008 | ||
|
||
# - TARGET_ARCH: x64 | ||
# CONDA_PY: 27 | ||
# CONDA_INSTALL_LOCN: C:\\Miniconda-x64 | ||
# APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2008 | ||
|
||
- TARGET_ARCH: x86 | ||
CONDA_PY: 35 | ||
CONDA_INSTALL_LOCN: C:\\Miniconda35 | ||
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015 | ||
platform: x86 | ||
SHARED: ON | ||
|
||
- TARGET_ARCH: x64 | ||
CONDA_PY: 35 | ||
CONDA_INSTALL_LOCN: C:\\Miniconda35-x64 | ||
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015 | ||
platform: x64 | ||
SHARED: ON | ||
|
||
- TARGET_ARCH: x86 | ||
CONDA_PY: 36 | ||
CONDA_INSTALL_LOCN: C:\\Miniconda36 | ||
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015 | ||
platform: x86 | ||
SHARED: OFF | ||
|
||
- TARGET_ARCH: x64 | ||
CONDA_PY: 36 | ||
CONDA_INSTALL_LOCN: C:\\Miniconda36-x64 | ||
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015 | ||
platform: x64 | ||
SHARED: OFF | ||
|
||
configuration: | ||
# - Debug | ||
- Release | ||
|
||
# Clone directory. | ||
clone_folder: c:\projects\openpmd-api | ||
|
||
# Fetch repository as zip archive. | ||
shallow_clone: false | ||
|
||
# Set the clone depth. | ||
clone_depth: 1 | ||
|
||
# Build tags (GitHub only) | ||
skip_tags: false | ||
|
||
branches: | ||
except: | ||
- gh-pages | ||
|
||
init: | ||
# Print AppVeyor environment variables | ||
- cmd: echo "%APPVEYOR%" | ||
- cmd: echo "%CI%" | ||
- cmd: echo "%APPVEYOR_API_URL%" | ||
- cmd: echo "%APPVEYOR_ACCOUNT_NAME%" | ||
- cmd: echo "%APPVEYOR_BUILD_WORKER_IMAGE%" | ||
- cmd: echo "%APPVEYOR_PROJECT_ID%" | ||
- cmd: echo "%APPVEYOR_PROJECT_NAME%" | ||
- cmd: echo "%APPVEYOR_PROJECT_SLUG%" | ||
- cmd: echo "%APPVEYOR_BUILD_FOLDER%" | ||
- cmd: echo "%APPVEYOR_BUILD_ID%" | ||
- cmd: echo "%APPVEYOR_BUILD_NUMBER%" | ||
- cmd: echo "%APPVEYOR_BUILD_VERSION%" | ||
- cmd: echo "%APPVEYOR_PULL_REQUEST_NUMBER%" | ||
- cmd: echo "%APPVEYOR_PULL_REQUEST_TITLE%" | ||
- cmd: echo "%APPVEYOR_JOB_ID%" | ||
- cmd: echo "%APPVEYOR_REPO_PROVIDER%" | ||
- cmd: echo "%APPVEYOR_REPO_SCM%" | ||
- cmd: echo "%APPVEYOR_REPO_NAME%" | ||
- cmd: echo "%APPVEYOR_REPO_BRANCH%" | ||
- cmd: echo "%APPVEYOR_REPO_TAG%" | ||
- cmd: echo "%APPVEYOR_REPO_TAG_NAME%" | ||
- cmd: echo "%APPVEYOR_REPO_COMMIT%" | ||
- cmd: echo "%APPVEYOR_REPO_COMMIT_TIMESTAMP%" | ||
- cmd: echo "%APPVEYOR_REPO_COMMIT_MESSAGE%" | ||
- cmd: echo "%APPVEYOR_REPO_COMMIT_MESSAGE_EXTENDED%" | ||
- cmd: echo "%APPVEYOR_SCHEDULED_BUILD%" | ||
- cmd: echo "%APPVEYOR_FORCED_BUILD%" | ||
- cmd: echo "%APPVEYOR_RE_BUILD%" | ||
- cmd: echo "%PLATFORM%" | ||
- cmd: echo "%TARGET_ARCH%" | ||
- cmd: echo "%CONFIGURATION%" | ||
- cmd: echo "%SHARED%" | ||
|
||
install: | ||
# Cywin's git breaks conda-build. (see https://github.com/conda-forge/conda-smithy-feedstock/pull/2) | ||
- cmd: rmdir C:\cygwin /s /q | ||
|
||
# Add path, activate `conda` and update conda. | ||
- cmd: call %CONDA_INSTALL_LOCN%\Scripts\activate.bat | ||
- cmd: conda update --yes --quiet conda | ||
|
||
- cmd: set PYTHONUNBUFFERED=1 | ||
|
||
# Add our channels. | ||
- cmd: conda config --set show_channel_urls true | ||
- cmd: conda config --remove channels defaults | ||
- cmd: conda config --add channels defaults | ||
- cmd: conda config --add channels conda-forge | ||
|
||
# Configure the VM. | ||
- cmd: conda install -n root --quiet --yes cmake boost-cpp pybind11 hdf5 | ||
|
||
before_build: | ||
- cmd: cd C:\projects\openpmd-api | ||
- cmd: mkdir build | ||
- cmd: cd build | ||
|
||
# Download example files | ||
- ps: ..\.travis\download_samples.ps1 | ||
|
||
# Compiler & Generator Selection | ||
- cmd: if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2015" set OPENPMD_CMAKE_GENERATOR=Visual Studio 14 2015 | ||
- cmd: if "%TARGET_ARCH%"=="x64" set OPENPMD_CMAKE_GENERATOR=%OPENPMD_CMAKE_GENERATOR% Win64 | ||
# - cmd: if "%TARGET_ARCH%"=="x86" "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" amd64_x86 | ||
- cmd: if "%TARGET_ARCH%"=="x86" "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86 | ||
- cmd: if "%TARGET_ARCH%"=="x64" "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" amd64 | ||
|
||
# CMake configure | ||
- cmd: cmake -G "%OPENPMD_CMAKE_GENERATOR%" -DCMAKE_BUILD_TYPE=%CONFIGURATION% -DBUILD_SHARED_LIBS=%SHARED% -DBUILD_TESTING=ON ".." | ||
|
||
build_script: | ||
- cmd: cmake --build . --config %CONFIGURATION% | ||
- cmd: cmake --build . --config %CONFIGURATION% --target install | ||
|
||
test_script: | ||
- cmd: ctest -V -C %CONFIGURATION% | ||
|
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
New-item -ItemType directory -Name samples\git-sample\ | ||
Invoke-WebRequest https://github.com/openPMD/openPMD-example-datasets/raw/draft/example-3d.tar.gz -OutFile example-3d.tar.gz | ||
7z.exe x -r example-3d.tar.gz | ||
7z.exe x -r example-3d.tar | ||
Move-Item -Path example-3d\hdf5\* samples\git-sample\ | ||
Remove-Item -Recurse -Force example-3d* | ||
|
||
# https://github.com/yt-project/yt/pull/1645 | ||
New-item -ItemType directory -Name samples\issue-sample\ | ||
Invoke-WebRequest https://github.com/yt-project/yt/files/1542668/no_fields.zip -OutFile no_fields.zip | ||
Expand-Archive no_fields.zip -DestinationPath samples\issue-sample\ | ||
Invoke-WebRequest https://github.com/yt-project/yt/files/1542670/no_particles.zip -OutFile no_particles.zip | ||
Expand-Archive no_particles.zip -DestinationPath samples\issue-sample\ | ||
Remove-Item *.zip |
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 was deleted.
Oops, something went wrong.
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note: I keep this for docs, this line is needed if we want to build everything from a
amd64
platform