-
Notifications
You must be signed in to change notification settings - Fork 1
/
circle.yml
43 lines (43 loc) · 1.6 KB
/
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
37
38
39
40
41
42
43
version: 2.0
jobs:
build:
docker:
- image: wholetale/girder:latest
- image: mongo:3.4
steps:
- checkout
- run:
name: Installing Plugin Dependencies
command: |
rm -rf /girder/plugins/wt_home_dir
ln -s /root/project /girder/plugins/wt_home_dir
set -o pipefail; python3 -m pip install -r requirements.txt -r requirements-dev.txt | cat
- run:
name: Install Test Dependencies
environment:
- LC_ALL: "C.UTF-8"
command: |
set -o pipefail; cd /girder ; python3 -m pip install -r requirements-dev.txt -e .[plugins,sftp] | cat
set -o pipefail; cd /girder/pytest_girder ; python3 -m pip install . | cat
cp /root/project/setup.cfg /girder/
- run:
name: Running Tests
environment:
- PYTHON_VERSION: "3.9"
- COVERAGE_EXECUTABLE: "/girder/venv/bin/coverage"
- FLAKE8_EXECUTABLE: "/girder/venv/bin/flake8"
- VIRTUALENV_EXECUTABLE: "/girder/venv/bin/virtualenv"
- PYTHON_EXECUTABLE: "/girder/venv/bin/python3"
- TEST_GROUP: "python"
command: |
mkdir /girder/build
ctest -VV -S /girder/plugins/wt_home_dir/cmake/circle_continuous.cmake
- run:
name: Install Codecov client
command: python3 -m pip install codecov
- run:
name: Collect coverage reports
command: coverage combine /girder/build/test/coverage/python_temp/
- run:
name: Uploading Coverage Results
command: codecov