Skip to content

Commit 9fafa38

Browse files
author
Arno Klein
committed
Revert back from circleci v2 to v1 until figure out new format. Keep v2 attempt in DOTcircleci folder.
1 parent 3b3eeb3 commit 9fafa38

File tree

4 files changed

+130
-0
lines changed

4 files changed

+130
-0
lines changed

.circleci/config.yml renamed to DOTcircleci/config.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ jobs:
2525
MB: ${SITEPKGS}/mindboggle
2626
steps:
2727
- checkout
28+
#-----------------------------------------------------------------------
29+
# Dependencies
30+
#-----------------------------------------------------------------------
2831
- run:
2932
name: install requirements/dev.txt
3033
command: pip install -r requirements/dev.txt
File renamed without changes.

circle.yml

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
## Configuration file for circleci.com continuous integration (testing)
2+
##
3+
## All dependencies are accounted for in the environment.yml file.
4+
##
5+
## Authors:
6+
## - Arno Klein, 2016 ([email protected]) http://binarybottle.com
7+
##
8+
## Copyright 2016, Mindboggle team (mindboggle.info), Apache v2.0 License
9+
10+
#-----------------------------------------------------------------------------
11+
# Customize the test machine:
12+
#-----------------------------------------------------------------------------
13+
machine:
14+
# Add some environment variables
15+
environment:
16+
HOME: /home/ubuntu
17+
CONDA_ROOT: ${HOME}/miniconda
18+
ENV_NAME: mindboggle-env
19+
ENV_PREFIX: ${CONDA_ROOT}/envs/${ENV_NAME}
20+
python: ${ENV_PREFIX}/bin/python
21+
vtk_cpp_tools: ${HOME}/mindboggle/vtk_cpp_tools/bin
22+
PATH: ${ENV_PREFIX}/bin:${CONDA_ROOT}/bin:${vtk_cpp_tools}:${PATH}
23+
SITEPKGS: ${ENV_PREFIX}/lib/python3.5/site-packages
24+
PYTHONPATH: ${SITEPKGS}/vtk:${PYTHONPATH}
25+
MB: ${SITEPKGS}/mindboggle
26+
27+
#-----------------------------------------------------------------------------
28+
# Customize dependencies:
29+
#-----------------------------------------------------------------------------
30+
dependencies:
31+
#cache_directories:
32+
# - $CONDA_ROOT
33+
34+
pre:
35+
- sudo apt-get update; sudo apt-get install libllvm-3.3
36+
37+
override:
38+
39+
#-------------------------------------------------------------------------
40+
# Download/install conda (if not already cached)
41+
#-------------------------------------------------------------------------
42+
- >
43+
if [[ ! -d $CONDA_ROOT ]]; then
44+
echo "Installing Miniconda3...";
45+
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh &&
46+
bash Miniconda3-latest-Linux-x86_64.sh -b -p $CONDA_ROOT;
47+
else
48+
echo "Using cached Miniconda install";
49+
fi
50+
- conda config --set show_channel_urls yes --set always_yes yes
51+
- conda update conda conda-env
52+
#-------------------------------------------------------------------------
53+
# Create a Python environment (see environment.yml file):
54+
#-------------------------------------------------------------------------
55+
- conda env create
56+
- source activate mindboggle-env
57+
- conda info --envs
58+
#-------------------------------------------------------------------------
59+
# Install Mindboggle and its C++ code:
60+
#-------------------------------------------------------------------------
61+
- $python setup.py install
62+
- mkdir $vtk_cpp_tools && cd $vtk_cpp_tools && cmake ../ && make
63+
64+
#-----------------------------------------------------------------------------
65+
# Customize test commands:
66+
#-----------------------------------------------------------------------------
67+
test:
68+
override:
69+
- $python -m "nose" --with-doctest ${MB}/thirdparty/
70+
- $python -m "nose" --with-doctest ${MB}/mio/
71+
- $python -m "nose" --with-doctest ${MB}/guts/
72+
- $python -m "nose" --with-doctest ${MB}/shapes/
73+
- $python -m "nose" --with-doctest ${MB}/features/
74+
#- $python -m "nose" --with-doctest --with-coverage ${MB}/evaluate/
75+
#- coveralls

environment.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# Environment for installing Mindboggle
2+
#
3+
# This environment is configured for circleci.com continuous integration
4+
# (testing).
5+
#
6+
# Authors:
7+
# - Arno Klein, 2016-2017 ([email protected]) http://binarybottle.com
8+
#
9+
# Copyright 2016-2017, Mindboggle team (mindboggle.info), Apache v2.0 License
10+
11+
#-----------------------------------------------------------------------------
12+
# mindboggle-env environment:
13+
#-----------------------------------------------------------------------------
14+
name: mindboggle-env
15+
#-----------------------------------------------------------------------------
16+
# anaconda cloud channel for installing VTK 7.0.0:
17+
#-----------------------------------------------------------------------------
18+
channels:
19+
- clinicalgraphics
20+
#-----------------------------------------------------------------------------
21+
# mindboggle dependencies:
22+
#-----------------------------------------------------------------------------
23+
dependencies:
24+
- python=3.5.1
25+
- vtk=7.0.0
26+
- matplotlib
27+
- numpy
28+
- scipy
29+
- pandas
30+
- cmake
31+
- pip
32+
- pip:
33+
- nibabel
34+
- nipype
35+
- prov
36+
- traits
37+
- xvfbwrapper
38+
- colormath
39+
- pydotplus
40+
41+
- networkx
42+
- lxml
43+
- simplejson
44+
- future
45+
- nose
46+
#-------------------------------------------------------------------------
47+
# additional testing tools:
48+
#-------------------------------------------------------------------------
49+
- ipython
50+
- pytest
51+
- coverage
52+

0 commit comments

Comments
 (0)