forked from mongodb/selected-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathevergreen.yml
50 lines (43 loc) · 980 Bytes
/
evergreen.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
buildvariants:
- display_name: Ubuntu 16.04
name: ubuntu1604
run_on:
- ubuntu1604-test
tasks:
- name: unit_tests
- name: check_formatting
functions:
create virtualenv:
- command: shell.exec
params:
working_dir: src
script: |
set -o errexit
virtualenv --python=/opt/mongodbtoolchain/v3/bin/python3 venv
. venv/bin/activate
pip install -r requirements.txt
pip install -e .
pre:
- command: git.get_project
params:
directory: src
- func: create virtualenv
tasks:
- name: unit_tests
commands:
- command: shell.exec
params:
working_dir: src
script: |
set -o errexit
. venv/bin/activate
pytest --flake8 --ignore=venv
- name: check_formatting
commands:
- command: shell.exec
params:
working_dir: src
script: |
set -o errexit
. venv/bin/activate
black --check --diff src tests --config setup.cfg