Files
spleeter/.circleci/config.yml

40 lines
883 B
YAML
Raw Normal View History

2019-11-06 23:16:20 +01:00
version: 2
jobs:
test:
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-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:
name: install spleeter
2019-11-06 23:35:41 +01:00
command: pip install .
2019-11-06 23:16:20 +01:00
- run:
name: test separation
2019-11-06 23:35:41 +01:00
command: spleeter separate -i audio_example.mp3 -o .
2019-11-06 23:16:20 +01:00
upload:
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
command: python setup.py bdist
- 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:
- test
- upload:
filters:
branches:
only:
- master
requires:
- test