Files
spleeter/.circleci/config.yml
2019-11-07 00:24:27 +01:00

40 lines
883 B
YAML

version: 2
jobs:
test:
docker:
- image: python:3.7
working_directory: ~/spleeter
steps:
- checkout
- run:
name: install ffmpeg
command: apt-get update && apt-get install -y ffmpeg
- run:
name: install spleeter
command: pip install .
- run:
name: test separation
command: spleeter separate -i audio_example.mp3 -o .
upload:
docker:
- image: python:3
steps:
- checkout
- run:
name: package
command: python setup.py sdist
- run:
name: upload to PyPi
command: pip install twine && twine upload dist/*
workflows:
version: 2
test-and-deploy:
jobs:
- test
- upload:
filters:
branches:
only:
- master
requires:
- test