Skip to content

Commit d32f222

Browse files
author
Arno Klein
committed
Convert circleci file to version 2
1 parent b518b5f commit d32f222

File tree

1 file changed

+30
-29
lines changed

1 file changed

+30
-29
lines changed

.circleci/config.yml

Lines changed: 30 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -10,35 +10,39 @@
1010
version: 2
1111

1212
#-----------------------------------------------------------------------------
13-
# Customize the test machine:
13+
# Build and test jobs
1414
#-----------------------------------------------------------------------------
1515
jobs:
1616
build:
17-
# Add some environment variables
18-
environment:
19-
HOME: /home/ubuntu
20-
CONDA_ROOT: ${HOME}/miniconda
21-
ENV_NAME: mindboggle-env
22-
ENV_PREFIX: ${CONDA_ROOT}/envs/${ENV_NAME}
23-
python: ${ENV_PREFIX}/bin/python
24-
vtk_cpp_tools: ${HOME}/mindboggle/vtk_cpp_tools/bin
25-
PATH: ${ENV_PREFIX}/bin:${CONDA_ROOT}/bin:${vtk_cpp_tools}:${PATH}
26-
SITEPKGS: ${ENV_PREFIX}/lib/python3.5/site-packages
27-
PYTHONPATH: ${SITEPKGS}/vtk:${PYTHONPATH}
28-
MB: ${SITEPKGS}/mindboggle
17+
steps:
18+
- run:
19+
environment:
20+
HOME: /home/ubuntu
21+
CONDA_ROOT: ${HOME}/miniconda
22+
ENV_NAME: mindboggle-env
23+
ENV_PREFIX: ${CONDA_ROOT}/envs/${ENV_NAME}
24+
python: ${ENV_PREFIX}/bin/python
25+
vtk_cpp_tools: ${HOME}/mindboggle/vtk_cpp_tools/bin
26+
PATH: ${ENV_PREFIX}/bin:${CONDA_ROOT}/bin:${vtk_cpp_tools}:${PATH}
27+
SITEPKGS: ${ENV_PREFIX}/lib/python3.5/site-packages
28+
PYTHONPATH: ${SITEPKGS}/vtk:${PYTHONPATH}
29+
MB: ${SITEPKGS}/mindboggle
30+
test:
31+
steps:
32+
- $python -m "nose" --with-doctest ${MB}/thirdparty/
33+
- $python -m "nose" --with-doctest ${MB}/mio/
34+
- $python -m "nose" --with-doctest ${MB}/guts/
35+
- $python -m "nose" --with-doctest ${MB}/shapes/
36+
- $python -m "nose" --with-doctest ${MB}/features/
37+
#- $python -m "nose" --with-doctest --with-coverage ${MB}/evaluate/
38+
#- coveralls
2939

30-
#-----------------------------------------------------------------------------
31-
# Customize dependencies:
32-
#-----------------------------------------------------------------------------
3340
dependencies:
3441
#cache_directories:
3542
# - $CONDA_ROOT
36-
3743
pre:
3844
- sudo apt-get update; sudo apt-get install libllvm-3.3
39-
4045
override:
41-
4246
#-------------------------------------------------------------------------
4347
# Download/install conda (if not already cached)
4448
#-------------------------------------------------------------------------
@@ -65,14 +69,11 @@ dependencies:
6569
- mkdir $vtk_cpp_tools && cd $vtk_cpp_tools && cmake ../ && make
6670

6771
#-----------------------------------------------------------------------------
68-
# Customize test commands:
72+
# Workflows: build and test
6973
#-----------------------------------------------------------------------------
70-
test:
71-
override:
72-
- $python -m "nose" --with-doctest ${MB}/thirdparty/
73-
- $python -m "nose" --with-doctest ${MB}/mio/
74-
- $python -m "nose" --with-doctest ${MB}/guts/
75-
- $python -m "nose" --with-doctest ${MB}/shapes/
76-
- $python -m "nose" --with-doctest ${MB}/features/
77-
#- $python -m "nose" --with-doctest --with-coverage ${MB}/evaluate/
78-
#- coveralls
74+
workflows:
75+
version: 2
76+
build_and_test:
77+
jobs:
78+
- build
79+
- test

0 commit comments

Comments
 (0)