forked from numenta/nupic.core-legacy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
46 lines (44 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
machine:
timezone:
GMT
xcode:
version: 8.0
environment:
XCODE_SCHEME: nupic
XCODE_WORKSPACE: nupic
ARCHFLAGS: "-arch x86_64"
PYTHONPATH: "$HOME/Library/Python/2.7/lib/python/site-packages"
PATH: "$HOME/Library/Python/2.7/bin:$PATH"
PYBIN: "$HOME/Library/Python/2.7/bin"
pre:
- pip install --user --ignore-installed --upgrade --verbose virtualenv
# Link virtualenv to /usr/local/bin if it doesn't exist and always give exit status of 0.
- "([ ! -e /usr/local/bin/virtualenv ] && ln -s ~/Library/Python/2.7/bin/virtualenv /usr/local/bin/virtualenv) || true"
dependencies:
override:
# TODO: Use get-pip.py
#- curl --silent --show-error --retry 5 -O https://releases.numenta.org/pip/1ebd3cb7a5a3073058d0c9552ab074bd/get-pip.py
#- python get-pip.py --user --upgrade --ignore-installed pip setuptools wheel
- pip install --user --ignore-installed --upgrade pip setuptools wheel
# Still don't get the user-installed version of pip, but this seems manageable.
- pip --version
- pip install --use-wheel --user -r bindings/py/requirements.txt --quiet || exit
- pip install --user pycapnp==0.5.8
- pip install --user pytest
compile:
override:
- mkdir -p build/scripts
- cd build/scripts && cmake ../.. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../release -DPY_EXTENSIONS_DIR=../../bindings/py/nupic/bindings
- cd build/scripts && make -j6
- cd build/scripts && make install
- python setup.py bdist_wheel
- mkdir dist && mv bindings/py/dist/*.whl dist/
- pip install --use-wheel --user --find-links=`pwd`/dist/ nupic.bindings
test:
override:
- echo $PATH
- ls -la $HOME/Library/Python/2.7/bin/
- py.test bindings/py/tests
post:
- mv dist/*.whl $CIRCLE_ARTIFACTS/
- ls -l $CIRCLE_ARTIFACTS/