-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ENH: Add Azure build * FIX: Set standard explicitly * FIX: Install PortAudio * ENH: Add Makefile to doc, bump version * FIX: build_sphinx and Makefile * FIX: requirements.txt * STY: Stick with python3 -m pip * MAINT: Remove v and merge * FIX: Missed one
- Loading branch information
Showing
7 changed files
with
164 additions
and
30 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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# Adapted from MNE-Python (BSD 3-clause) | ||
version: 2 | ||
jobs: | ||
build_docs: | ||
docker: | ||
- image: circleci/python:3.7-stretch | ||
steps: | ||
- checkout | ||
- run: | ||
name: Set BASH_ENV | ||
command: | | ||
echo "set -e" >> $BASH_ENV | ||
echo "BASH_ENV:" | ||
cat $BASH_ENV | ||
- restore_cache: | ||
keys: | ||
- pip-cache | ||
|
||
- run: | ||
name: Get Python running | ||
command: | | ||
pip install --user --upgrade --progress-bar off -r doc/requirements.txt | ||
- save_cache: | ||
key: pip-cache | ||
paths: | ||
- ~/.cache/pip | ||
|
||
# Build docs | ||
- run: | ||
name: make html | ||
command: | | ||
python setup.py build_sphinx | ||
# Save the outputs | ||
- store_artifacts: | ||
path: build/sphinx/html/ | ||
destination: html | ||
|
||
workflows: | ||
version: 2 | ||
|
||
default: | ||
jobs: | ||
- build_docs |
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,6 @@ | ||
build | ||
doc/_build | ||
src/*.so | ||
src/*.egg-info | ||
__pycache__ | ||
.eggs |
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,19 +1,83 @@ | ||
# Starter pipeline | ||
# Start with a minimal pipeline that you can customize to build and deploy your code. | ||
# Add steps that build, run tests, deploy, and more: | ||
# https://aka.ms/yaml | ||
|
||
# Originally adapted from github.com/vispy/vispy (BSD 3-clause) | ||
trigger: | ||
- master | ||
|
||
pool: | ||
vmImage: 'ubuntu-latest' | ||
|
||
steps: | ||
- script: echo Hello, world! | ||
displayName: 'Run a one-line script' | ||
|
||
- script: | | ||
echo Add other tasks to build, test, and deploy your project. | ||
echo See https://aka.ms/yaml | ||
displayName: 'Run a multi-line script' | ||
branches: | ||
include: | ||
- '*' | ||
tags: | ||
include: | ||
- '*' | ||
variables: | ||
CIBW_BUILDING: "true" | ||
CIBW_SKIP: "cp27-* cp34-*" | ||
CIBW_TEST_COMMAND: "python -c \"import rtmixer; print(rtmixer.__version__)\"" | ||
CIBW_BUILD_VERBOSITY: "2" | ||
CIBW_BEFORE_BUILD: "pip install -U pip setuptools" | ||
CIBW_BEFORE_BUILD_LINUX: "yum install -y portaudio" | ||
jobs: | ||
- job: linux | ||
pool: {vmImage: 'Ubuntu-16.04'} | ||
steps: | ||
- task: UsePythonVersion@0 | ||
- bash: | | ||
git submodule update --init --recursive | ||
python -m pip install --upgrade pip | ||
pip install cibuildwheel twine numpy Cython jupyter ipywidgets | ||
python setup.py sdist -d wheelhouse | ||
cibuildwheel --output-dir wheelhouse . | ||
- task: PublishPipelineArtifact@1 | ||
inputs: | ||
path: $(System.DefaultWorkingDirectory)/wheelhouse | ||
artifact: deployLinux | ||
- job: macos | ||
pool: {vmImage: 'macOS-10.13'} | ||
steps: | ||
- task: UsePythonVersion@0 | ||
- bash: | | ||
git submodule update --init --recursive | ||
python -m pip install --upgrade pip | ||
pip install cibuildwheel | ||
cibuildwheel --output-dir wheelhouse . | ||
- task: PublishPipelineArtifact@1 | ||
inputs: | ||
path: $(System.DefaultWorkingDirectory)/wheelhouse | ||
artifact: deployMacOS | ||
- job: windows | ||
pool: {vmImage: 'vs2017-win2016'} | ||
steps: | ||
- {task: UsePythonVersion@0, inputs: {versionSpec: '3.5', architecture: x86}} | ||
- {task: UsePythonVersion@0, inputs: {versionSpec: '3.5', architecture: x64}} | ||
- {task: UsePythonVersion@0, inputs: {versionSpec: '3.6', architecture: x86}} | ||
- {task: UsePythonVersion@0, inputs: {versionSpec: '3.6', architecture: x64}} | ||
- {task: UsePythonVersion@0, inputs: {versionSpec: '3.7', architecture: x86}} | ||
- {task: UsePythonVersion@0, inputs: {versionSpec: '3.7', architecture: x64}} | ||
- bash: | | ||
git submodule update --init --recursive | ||
python -m pip install --upgrade pip | ||
pip install cibuildwheel | ||
cibuildwheel --output-dir wheelhouse . | ||
- task: PublishPipelineArtifact@1 | ||
inputs: | ||
path: $(System.DefaultWorkingDirectory)/wheelhouse | ||
artifact: deployWindows | ||
- job: deployPyPI | ||
pool: {vmImage: 'Ubuntu-16.04'} | ||
condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/')) | ||
dependsOn: | ||
- linux | ||
- macos | ||
- windows | ||
steps: | ||
- task: UsePythonVersion@0 | ||
- task: DownloadPipelineArtifact@2 | ||
inputs: | ||
patterns: | | ||
deployLinux/* | ||
deployMacOS/*.whl | ||
deployWindows/*.whl | ||
- bash: | | ||
cd $(Pipeline.Workspace) | ||
python -m pip install --upgrade pip | ||
pip install twine | ||
twine upload -u "__token__" --skip-existing deployLinux/* deployMacOS/* deployWindows/* | ||
env: | ||
TWINE_PASSWORD: $(pypiToken) |
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 +1,3 @@ | ||
pa-ringbuffer | ||
sphinx_rtd_theme | ||
sphinx |
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