forked from ilastik/ilastik
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
47 lines (41 loc) · 1.69 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
## Customize the test machine
machine:
# Add some environment variables
environment:
CONDA_ROOT: /home/ubuntu/miniconda
TEST_ENV_NAME: test-env
TEST_ENV_PREFIX: /home/ubuntu/miniconda/envs/test-env
PATH: ${TEST_ENV_PREFIX}/bin:${CONDA_ROOT}/bin:${PATH}
## Customize dependencies
dependencies:
cache_directories:
- /home/ubuntu/miniconda
override:
# Download/install conda (if not already cached)
- >
if [[ ! -d ${CONDA_ROOT} ]]; then
echo "Installing Miniconda...";
wget --quiet https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh &&
bash Miniconda-latest-Linux-x86_64.sh -b -p ${CONDA_ROOT};
else
echo "Using cached Miniconda install";
fi
- >
if [ ! -d ${TEST_ENV_PREFIX} ]; then
conda create -y -n ${TEST_ENV_NAME} -c ilastik ilastik-everything-no-solvers;
else
conda install -y -n ${TEST_ENV_NAME} -c ilastik ilastik-everything-no-solvers;
fi
# Replace packaged source with full git repo
- rm -rf ${TEST_ENV_PREFIX}/ilastik-meta
- git clone http://github.com/ilastik/ilastik-meta ${TEST_ENV_PREFIX}/ilastik-meta
- cd ${TEST_ENV_PREFIX}/ilastik-meta && git submodule init
- cd ${TEST_ENV_PREFIX}/ilastik-meta && git submodule update --recursive
- cd ${TEST_ENV_PREFIX}/ilastik-meta && git submodule foreach "git checkout master"
# Replace lazyflow with the code in the current build (may not be master)
- rm -rf ${TEST_ENV_PREFIX}/ilastik-meta/ilastik
- ln -s `pwd` ${TEST_ENV_PREFIX}/ilastik-meta/ilastik
## Customize test commands
test:
override:
- cd ${TEST_ENV_PREFIX}/ilastik-meta/ilastik/tests ./run_each_unit_test.sh