This repository was archived by the owner on Dec 21, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathcircle.yml
More file actions
38 lines (36 loc) · 1.48 KB
/
circle.yml
File metadata and controls
38 lines (36 loc) · 1.48 KB
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
# Controls the build environment
machine:
python:
version: 3.5.2
environment:
PATH: /home/ubuntu/miniconda3/bin:$PATH
dependencies:
override:
# Moving to nilearn directory before performing the installation.
- cd ~/pelops
- source testci/install.sh:
environment:
DISTRIB: "conda"
PYTHON_VERSION: "3.5"
NUMPY_VERSION: "*"
SCIPY_VERSION: "*"
SCIKIT_LEARN_VERSION: "*"
MATPLOTLIB_VERSION: "*"
- conda install -y opencv hdfs3
- conda install -y pytest pytest-cov pillow h5py scipy scikit-image
- /home/ubuntu/miniconda3/bin/pip install imageio
- /home/ubuntu/miniconda3/bin/pip install tensorflow==0.12.* git+git://github.com/fchollet/keras.git@2ad3544b017fe9c0d7a25ef0640baa52281372b5
# Set up the commands to run as a test (override), as well as the commands to
# run before (pre) and after (post).
test:
pre:
- mkdir -p $CIRCLE_TEST_REPORTS/junit/
override:
# Test installation via pip
- cd /home/ubuntu/pelops && /home/ubuntu/miniconda3/bin/pip install .
# Test importing installed package
- /home/ubuntu/miniconda3/bin/python3 -c "import pelops; import pelops.datasets"
# Run pytest tests
- cd /home/ubuntu/pelops && /home/ubuntu/miniconda3/bin/python3 -m pytest -v --cov --cov-report=term-missing:skip-covered --junitxml=$CIRCLE_TEST_REPORTS/junit/junit_output.xml
post:
- bash <(curl -s https://codecov.io/bash) -t 08234947-61d0-48ea-b0f0-1c82d3f2dfd7