forked from tutorcruncher/morpheus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdonk.yml
57 lines (48 loc) · 1.3 KB
/
donk.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
install:
- pip install -U setuptools pip
- pip install -r requirements.txt
black: black -S -l 120 --target-version py37 morpheus tests
isort: isort -w 120 morpheus tests
format:
- +isort
- +black
lint:
- flake8 morpheus tests
- +isort -- --check-only
- +black -- --check
- ./tests/check_debug.sh
test:
- pytest --cov=morpheus
testcov:
- +test
- coverage html
all:
- +testcov
- +lint
build:
- _find morpheus -name '*.py[co]' -delete
- _find morpheus -name '__pycache__' -delete
- export C=$(git rev-parse HEAD)
- export BT=$(date)
- 'docker build morpheus -t morpheus --build-arg COMMIT=$C --build-arg BUILD_TIME="$BT"'
docker-dev:
- +build
- docker build mandrill-mock -t mandrill-mock
- _echo ================================================================================
- _echo running locally for development and testing
- _echo You'll want to run docker-logs in another window see what's going on
- _echo ================================================================================
- _echo
- _echo running docker compose...
- docker-compose up -d
clean:
- rm -rf `find . -name __pycache__`
- rm -f `find . -type f -name '*.py[co]' `
- rm -f `find . -type f -name '*~' `
- rm -f `find . -type f -name '.*~' `
- rm -rf .cache
- rm -rf htmlcov
- rm -rf *.egg-info
- rm -f .coverage
- rm -f .coverage.*
- rm -rf build