-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
32 lines (32 loc) · 922 Bytes
/
docker-compose.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
# docker-compose up --build --exit-code-from app
version: "2.4"
x-net: &net
networks:
- main
services:
app:
<<: *net
image: datajoint/djtest:py${PY_VERSION}-${DISTRO}
environment:
- SAMPLE_MESSAGE
user: ${UID}:anaconda
command:
- sh
- -c
- |-
# trigger complete failure if any fail
set -e
# secret check
echo -n "${SAMPLE_MESSAGE}raphael" | base64
# additional test dependencies (need to update)
pip install . pytest pytest-cov
# syntax tests
flake8 calculator --count --select=E9,F63,F7,F82 --show-source --statistics
# unit tests
pytest --cov=calculator /main/tests
# style tests
flake8 --ignore=E121,E123,E126,E226,E24,E704,W503,W504,E722,F401,W605 calculator --count --max-complexity=62 --max-line-length=127 --statistics
volumes:
- .:/main
networks:
main: