-
Notifications
You must be signed in to change notification settings - Fork 10
/
circle.yml
52 lines (52 loc) · 1.98 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
44
45
46
47
48
49
50
51
52
version: 2.0
jobs:
build:
docker:
- image: xarthisius/girder:hub
- image: mongo:3.4
steps:
- checkout
- run:
name: Installing Plugin Dependencies
command: |
rm -rf /girder/plugins/ythub
ln -s /root/project /girder/plugins/ythub
set -o pipefail; pip install -U --force-reinstall -r requirements.txt | cat
- run:
name: Install Test Dependencies
environment:
- CMAKE_SHORT_VERSION: "3.4"
- CMAKE_VERSION: "3.4.3"
- LC_ALL: "C.UTF-8"
command: |
curl -OL "http://cmake.org/files/v${CMAKE_SHORT_VERSION}/cmake-${CMAKE_VERSION}-Linux-x86_64.tar.gz"
tar -x -C /usr --strip-components 1 -f "cmake-${CMAKE_VERSION}-Linux-x86_64.tar.gz"
git clone https://github.com/data-exp-lab/girder /tmp/girder
set -o pipefail; cd /tmp/girder ; python3 -m pip install -r requirements-dev.txt | cat
cp /tmp/girder/CMakeLists.txt /girder/
cp /tmp/girder/.coveragerc /girder/
cp -r /tmp/girder/tests /girder/
- run:
name: Running Tests
environment:
- PYTHON_VERSION: "3.4"
- COVERAGE_EXECUTABLE: "/usr/local/bin/coverage"
- FLAKE8_EXECUTABLE: "/usr/local/bin/flake8"
- VIRTUALENV_EXECUTABLE: "/usr/local/bin/virtualenv"
- PYTHON_EXECUTABLE: "/usr/bin/python3"
- TEST_GROUP: "python"
command: |
mkdir /girder/build
ctest -VV -S /girder/plugins/ythub/cmake/circle_continuous.cmake
- run:
name: Install Codecov client
command: pip install codecov
- run:
name: Install Codecov client
command: pip install codecov
- run:
name: Collect coverage reports
command: coverage combine /girder/build/test/coverage/python_temp/
- run:
name: Uploading Coverage Results
command: codecov