forked from EtienneCmb/visbrain
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcircle.yml
62 lines (57 loc) · 1.79 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
60
61
62
general:
branches:
ignore:
- gh-pages
only:
- master
- develop
machine:
environment:
# We need to set this variable to let Anaconda take precedence
PATH: "/home/ubuntu/miniconda3/envs/circleenv/bin:/home/ubuntu/miniconda3/bin:$PATH"
DISPLAY: ":99.0"
python:
version: 3.6.0
dependencies:
cache_directories:
- "~/miniconda3"
# Various dependencies
pre:
# Get a running Python
- cd ~;
# Disable pyenv (no cleaner way provided by CircleCI as it prepends pyenv version to PATH)
- rm -rf ~/.pyenv;
- rm -rf ~/virtualenvs;
# Get Anaconda and conda-based requirements
- >
if [ ! -d "/home/ubuntu/miniconda3" ]; then
echo "Setting up conda";
wget -q http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda.sh;
chmod +x ~/miniconda.sh;
~/miniconda.sh -b -p /home/ubuntu/miniconda3;
conda update --yes --quiet conda;
else
echo "Conda already set up.";
fi
- if ! conda env list | grep circleenv; then
conda create -n circleenv --yes pip python=3.6 pip;
else
echo "Conda env already set up.";
fi;
- conda install -n circleenv --yes numpy scipy pip;
- pip install codecov pytest pytest-cov pytest-travis-fold;
- pip install mne nibabel pandas;
- ls -al /home/ubuntu/miniconda3;
- ls -al /home/ubuntu/miniconda3/bin;
- echo $PATH;
- echo $CIRCLE_BRANCH
- which python;
- which pip;
override:
- cd /home/ubuntu/visbrain && pip install -e .;
- /sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -screen 0 1400x900x24 -ac +extension GLX +render -noreset;
test:
override:
- make test;
post:
- codecov;