Skip to content
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

Set up CI with Azure Pipelines #915

Merged
merged 4 commits into from
Feb 10, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 0 additions & 49 deletions .appveyor.yml

This file was deleted.

129 changes: 0 additions & 129 deletions .travis.yml

This file was deleted.

3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# [![Perspective](https://perspective.finos.org/img/logo_inverted_tiny.png)](https://perspective.finos.org/)

[![Build Status](https://travis-ci.org/finos/perspective.svg?branch=master)](https://travis-ci.org/finos/perspective)
[![Appveyor](https://ci.appveyor.com/api/projects/status/github/finos/perspective?svg=true)](https://ci.appveyor.com/project/neilslinger/perspective)
[![Build Status](https://dev.azure.com/finosfoundation/perspective/_apis/build/status/finos.perspective?branchName=master)](https://dev.azure.com/finosfoundation/perspective/_build/latest?definitionId=1&branchName=master)
[![npm](https://img.shields.io/npm/v/@finos/perspective.svg?style=flat-square)](https://www.npmjs.com/package/@finos/perspective)
[![PyPI](https://img.shields.io/pypi/v/perspective-python.svg)](https://pypi.python.org/pypi/perspective-python)
[![FINOS - Operating](https://cdn.rawgit.com/finos/contrib-toolbox/master/images/badge-operating.svg)](https://finosfoundation.atlassian.net/wiki/display/FINOS/Operating)
Expand Down
167 changes: 167 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,167 @@

jobs:
- job: 'LinuxJS'
pool:
vmImage: 'ubuntu-16.04'

steps:
- task: NodeTool@0
inputs:
versionSpec: '12.x'

- bash: npm install -g yarn
displayName: "Install Yarn"

- bash: yarn
displayName: "Install Deps"
env:
PSP_DOCKER: 1

- bash: yarn build_js --ci
displayName: "Build"
env:
PSP_DOCKER: 1

- bash: yarn test_js --quiet --ci
displayName: "Test"
env:
PSP_DOCKER: 1


- job: 'Linux'
pool:
vmImage: 'ubuntu-16.04'

strategy:
matrix:
Python27:
python.version: '2.7'
python_flag: '--python2'
manylinux_flag: ''
Python27ManyLinux2010:
python.version: '2.7'
python_flag: '--python2'
manylinux_flag: '--manylinux2010'
Python37:
python.version: '3.7'
python_flag: ''
manylinux_flag: ''
Python37ManyLinux2010:
python.version: '3.7'
python_flag: ''
manylinux_flag: '--manylinux2010'
Python37ManyLinux2014:
python.version: '3.7'
python_flag: ''
manylinux_flag: '--manylinux2014'

steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '$(python.version)'
architecture: 'x64'

- task: NodeTool@0
inputs:
versionSpec: '12.x'

- bash: npm install -g yarn
displayName: "Install Yarn"

- bash: yarn
displayName: 'Install Deps'

- bash: yarn build_python --ci $(python_flag) $(manylinux_flag)
displayName: 'build'
env:
PSP_DOCKER: 1


# - job: 'Windows'
# pool:
# vmImage: 'vs2017-win2016'

# strategy:
# matrix:
# Python37:
# python.version: '3.7'
# python_flag: ''

# steps:
# - task: UsePythonVersion@0
# inputs:
# versionSpec: '$(python.version)'
# architecture: 'x64'

# - task: NodeTool@0
# inputs:
# versionSpec: '12.x'

# - script: |
# which python > python.txt
# set /p PYTHON=<python.txt
# ln -s %PYTHON% %PYTHON%$(python.version)
# python --version
# which python$(python.version)
# displayName: "Which python"

# - script: |
# python -m pip install numpy pyarrow==0.15.1
# displayName: "Python deps"

# - script: npm install -g yarn
# displayName: "Install Yarn"

# - script: yarn
# displayName: 'Install Deps'

# - script: yarn build_python --ci $(python_flag)
# displayName: 'build'


- job: 'Mac'
pool:
vmImage: 'macos-10.14'

strategy:
matrix:
Python27:
python.version: '2.7'
python_flag: '--python2'

Python37:
python.version: '3.7'
python_flag: ''

steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '$(python.version)'
architecture: 'x64'

- task: NodeTool@0
inputs:
versionSpec: '12.x'

- script: |
brew install boost
displayName: "System deps"

- script: |
which python
python --version
which python$(python.version)
displayName: "Which python"

- script: |
python -m pip install numpy pyarrow==0.15.1
displayName: "Python deps"

- script: npm install -g yarn
displayName: "Install Yarn"

- script: yarn
displayName: 'Install Deps'

- script: yarn build_python --ci $(python_flag)
displayName: 'build'
9 changes: 7 additions & 2 deletions cpp/perspective/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,7 @@ elseif(PSP_CPP_BUILD OR PSP_PYTHON_BUILD)
else()
message("${Cyan}Use python shared libraries${ColorReset}")
find_package( Python ${PSP_PYTHON_VERSION} REQUIRED COMPONENTS Interpreter Development)
link_directories( ${Python_LIBRARY_DIRS} )
endif()
message("${Cyan}Using python ${PYTHON_INCLUDE_DIRS} ${Python_LIBRARIES} ${ColorReset}")
include_directories( ${Python_INCLUDE_DIRS} )
Expand Down Expand Up @@ -601,8 +602,12 @@ elseif(PSP_CPP_BUILD OR PSP_PYTHON_BUILD)
target_link_libraries(psp ${PYTHON_PYARROW_LIBRARIES})
target_link_libraries(binding ${PYTHON_PYARROW_LIBRARIES})

target_link_libraries(psp ${PYTHON_LIBRARIES})
target_link_libraries(binding ${PYTHON_LIBRARIES})
if(WIN32)
# Don't link
else()
target_link_libraries(psp ${PYTHON_LIBRARIES})
target_link_libraries(binding ${PYTHON_LIBRARIES})
endif()

target_link_libraries(psp tbb)
target_link_libraries(binding tbb)
Expand Down
2 changes: 1 addition & 1 deletion python/perspective/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def build_extension_cmake(self, ext):
'-DCMAKE_LIBRARY_OUTPUT_DIRECTORY_{}={}'.format(
cfg.upper(),
extdir).replace('\\', '/'),
'-G', 'Visual Studio 14 2015'])
'-G', 'Visual Studio 15 2017'])
if sys.maxsize > 2**32:
# build 64 bit to match python
cmake_args += ['-A', 'x64']
Expand Down
Loading