Files
spleeter/.circleci/config.yml

75 lines
2.1 KiB
YAML
Raw Normal View History

2019-11-06 23:16:20 +01:00
version: 2
jobs:
2019-11-08 19:23:26 -05:00
test-3.6:
docker:
- image: python:3.6
working_directory: ~/spleeter
steps:
- checkout
- restore_cache:
keys:
- python-3.6-cache-{{ checksum requirements.txt }}
- python-3.6-cache-
- run:
name: install ffmpeg
command: apt-get update && apt-get install -y ffmpeg
- run:
name: install python dependencies
command: pip install -r requirements.txt && pip install pytest
- save_cache:
key: python-3.6-cache-{{ checksum requirements.txt }}
paths:
- "/usr/local/bin"
- "/usr/local/lib/python3.6/site-packages"
- run:
name: pytest
command: pytest -W ignore::FutureWarning -W ignore::DeprecationWarning
test-3.7:
2019-11-06 23:16:20 +01:00
docker:
2019-11-06 23:42:02 +01:00
- image: python:3.7
2019-11-06 23:16:20 +01:00
working_directory: ~/spleeter
steps:
- checkout
2019-11-08 19:23:26 -05:00
- restore_cache:
keys:
- python-3.7-cache-{{ checksum requirements.txt }}
- python-3.7-cache-
2019-11-06 23:32:52 +01:00
- run:
name: install ffmpeg
2019-11-06 23:36:41 +01:00
command: apt-get update && apt-get install -y ffmpeg
2019-11-06 23:16:20 +01:00
- run:
2019-11-08 19:23:26 -05:00
name: install python dependencies
command: pip install -r requirements.txt && pip install pytest
- save_cache:
key: python-3.7-cache-{{ checksum requirements.txt }}
paths:
- "/usr/local/bin"
- "/usr/local/lib/python3.7/site-packages"
2019-11-06 23:16:20 +01:00
- run:
2019-11-08 19:23:26 -05:00
name: pytest
command: pytest -W ignore::FutureWarning -W ignore::DeprecationWarning
pypi-deploy:
2019-11-06 23:16:20 +01:00
docker:
2019-11-06 23:35:41 +01:00
- image: python:3
2019-11-06 23:16:20 +01:00
steps:
- checkout
2019-11-06 23:20:33 +01:00
- run:
2019-11-06 23:16:20 +01:00
name: package
2019-11-07 00:24:27 +01:00
command: python setup.py sdist
2019-11-06 23:16:20 +01:00
- run:
name: upload to PyPi
2019-11-06 23:35:41 +01:00
command: pip install twine && twine upload dist/*
2019-11-06 23:20:33 +01:00
workflows:
version: 2
test-and-deploy:
jobs:
2019-11-08 19:23:26 -05:00
- test-3.6
- test-3.7
- pypi-deploy:
2019-11-06 23:20:33 +01:00
filters:
branches:
only:
- master
requires:
2019-11-08 19:23:26 -05:00
- test-3.6
- test-3.7