forked from numenta/htmresearch
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
59 lines (45 loc) · 1.68 KB
/
.travis.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
language: python
branches:
only: master
notifications:
webhooks: https://webhooks.gitter.im/e/af8b56ad2dd4ca61cb8e
env:
global:
- NUPIC=$TRAVIS_BUILD_DIR/nupic
- PYTHONPATH=/home/travis/build/numenta/nupic/lib/python2.7/site-packages:$NUPIC
- AWS_ACCESS_KEY_ID=AKIAIGHYSEHV3WFKOWNQ
- secure: Lrb/OJ6iMQ34xyOTz53g3+B/OEZvOT26FVxOr1J8zqnZ11QPvJDO0zb8xd6A3FdDLGQh0NJOo3ZieN96BqSajYMVYeWVCR3qCReOIn3TwNNaD7UfuHoRPBkMQd7Th/EHNC4h0hurRjU7GYvjbFkSFpHlJ5yj3neBrvJspn4Hx5U=
before_install:
# Upgrade pip
- pip install --upgrade pip
# Wheels is currently used for installation.
- pip install wheel
# These are required for the fetch_egg script.
- pip install requests
- pip install boto
# These are the required python dependencies for nupic.research
- pip install numpy --upgrade
- pip install matplotlib
# install gcc-4.8 for C++11 compatibility, #TODO remove when Travis has gcc>=4.8, (it's used for clang too, in coveralls)
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
- sudo apt-get -qq update
- sudo apt-get -qq install g++-4.8
- alias gcc='gcc-4.8'
- alias g++='g++-4.8'
install:
- echo $PYTHONPATH
- echo $NUPIC
- NUPIC_SHA=`cat nupic_sha.txt`
- 'echo NUPIC SHA: $NUPIC_SHA'
# Fetches the NuPIC wheels.
- python fetch_wheels.py
# Install wheels we just downloaded.
- NUPIC_VERSION=`ls ./wheelhouse | grep nupic | cut -d'-' -f2`
- echo "Installing NuPIC ${NUPIC_VERSION} with wheels..."
- pip install --use-wheel --no-index --find-links=wheelhouse nupic==${NUPIC_VERSION}
# Install nupic.research/sensorimotor
- cd ${TRAVIS_BUILD_DIR}/sensorimotor
- python setup.py install
script:
# Run sensorimotor tests
- py.test tests/