-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathcircle.yml
59 lines (50 loc) · 1.87 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
48
49
50
51
52
53
54
55
56
57
58
59
## 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
LD_LIBRARY_PATH: /home/ubuntu/miniconda/envs/test-env/lib
PYTHONPATH: /home/ubuntu/NeuroProof/build/python
PATH: ${TEST_ENV_PREFIX}/bin:${CONDA_ROOT}/bin:${PATH}
## Customize dependencies
dependencies:
cache_directories:
- /home/ubuntu/miniconda
override:
# System libraries
- sudo apt-get update
- sudo apt-get install libgl1-mesa-dev
# This is ugly... we should figure out which library needs this and fix it.
- sudo ln -s /usr/lib/x86_64-linux-gnu /usr/lib64
# Download/install conda (if not already cached)
- >
if [[ ! -d ${CONDA_ROOT} ]]; then
echo "Installing Miniconda...";
wget --quiet https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh &&
bash Miniconda3-latest-Linux-x86_64.sh -b -p ${CONDA_ROOT};
else
echo "Using cached Miniconda install";
fi
- conda config --add channels conda-forge
- conda config --add channels flyem-forge
- conda install --quiet -y anaconda-client
# Install neuroproof and all dependencies
- >
if [ ! -d ${TEST_ENV_PREFIX} ]; then
conda create --quiet -y -n ${TEST_ENV_NAME} neuroproof python=3 h5py;
else
conda install --quiet -y -n ${TEST_ENV_NAME} neuroproof python=3 h5py;
fi
# Remove neuroproof itself
- conda remove -y -n ${TEST_ENV_NAME} neuroproof
## Customize test commands
test:
override:
- echo "insecure" >> /home/ubuntu/.curlrc
- ./configure-for-conda.sh ${TEST_ENV_PREFIX}
- cd build && make && cd -
- cd build && make install && cd -
- cd build && make test && cd -
- cat build/Testing/Temporary/LastTest.log