-
Notifications
You must be signed in to change notification settings - Fork 4
/
circle.yml
36 lines (33 loc) · 986 Bytes
/
circle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
machine:
python:
version: "3.5.2"
dependencies:
pre:
- pip install --upgrade setuptools
- pip install pytest pytest-cov fakeredis hypothesis networkx mypy
- pip install -r script/linting/requirements.txt
- sudo apt-get update ; sudo apt-get install python3 python3-setuptools
- gem install fpm
override:
- rm -rf jacquard_split.egg-info
- pip install -e .
test:
pre:
- find . -name '__pycache__' -or -name '*.pyc' | xargs rm -rf
override:
- mkdir -p $CIRCLE_TEST_REPORTS/pytest
- py.test -v --cov=jacquard --junit-xml=$CIRCLE_TEST_REPORTS/pytest/junit.xml jacquard
- script/linting/lint
- mypy -p jacquard --ignore-missing-imports --strict-optional
post:
- ./hax_debian.sh
- mv *.deb $CIRCLE_ARTIFACTS/
deployment:
release:
tag: /[0-9]+(\.[0-9]+)*/
owner: prophile
commands:
- pip install twine wheel
- rm -rf dist
- python setup.py sdist bdist_wheel
- twine upload dist/*