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
0 commit comments