Files
spleeter/.circleci/config.yml

40 lines
936 B
YAML
Raw Normal View History

2019-11-06 23:16:20 +01:00
version: 2
jobs:
test:
docker:
- image: circleci/python:3.6.1
working_directory: ~/spleeter
steps:
- checkout
2019-11-06 23:32:52 +01:00
- run:
name: install ffmpeg
2019-11-06 23:34:09 +01:00
command: sudo apt-get update && sudo apt-get install ffmpeg
2019-11-06 23:16:20 +01:00
- run:
name: install spleeter
2019-11-06 23:32:52 +01:00
command: sudo pip install .
2019-11-06 23:16:20 +01:00
- run:
name: test separation
2019-11-06 23:30:41 +01:00
command: python -m spleeter separate -i audio_example.mp3 -o .
2019-11-06 23:16:20 +01:00
upload:
docker:
- image: circleci/python:3.6.1
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:27:55 +01:00
command: pip install twine --user && 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