forked from numenta/nupic-legacy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
93 lines (82 loc) · 3.71 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
branches:
except:
- gh-pages
language: python
python:
- "2.6"
- "2.7"
git:
submodules: false
env:
global:
- NUPIC=$TRAVIS_BUILD_DIR
- NTA=$HOME/nta/eng
# For S3 upload from travis-artifacts
- ARTIFACTS_AWS_REGION=us-west-2
- ARTIFACTS_S3_BUCKET=artifacts.numenta.org
# ARTIFACTS_AWS_ACCESS_KEY_ID
- secure: |-
LryXoMT+lhDYreY0xYVBZg0HbpZHik6fUh8ZqCiOoUYrCAkoMck1NWkvWMst
di3ZnAyQKxnOzqNpWDiBufJnA4OXzm4SnkDj5NT2ZYZ56jRNFXveRD9bmXcz
PFtP88dQvesy1el66EBBGTfuPls4pI7+Juu9iaK5jo9pup22rX0=
# ARTIFACTS_AWS_SECRET_ACCESS_KEY
- secure: |-
ZDEgrBeE7f9yTjD3Va4uvkEakNcNKTgNTJ8VWT9QUZdmEvlgvGWRvCbUZHQc
P+tJ/UVBATmEx5RHf0NqKFyfkC/VeA8C3D4ekCnbB11WF/4i8CCGCrhui9Mx
cfgr20Rz8KuuC/TZklPjVCy+0dXS3o2CL7u2b7XDGYzBYPxayjU=
matrix:
- CC=clang
- CC=gcc
notifications:
irc:
channels:
- "irc.freenode.net#nupic-hackers"
webhooks: http://issues.numenta.org:8081/travis
before_install:
- git clone https://github.com/numenta/nupic-linux64.git
- (cd nupic-linux64 && git reset --hard 9e4df07ee03184d670a8801b76f206785e2a8b2e)
- source nupic-linux64/bin/activate
- if [ "$CC" = "gcc" ]; then export CXX=g++; fi
- if [ "$CC" = "clang" ]; then export CXX=clang++; fi
install:
- if [ $PY_VERSION != "2.6" ]; then (cd nupic-linux64/ && mkdir -p lib/python${PY_VERSION}/site-packages && make > /dev/null) fi
# Workaround for multiprocessing.Queue SemLock error from run_opf_bechmarks_test.
# See: https://github.com/travis-ci/travis-cookbooks/issues/155
- "sudo rm -rf /dev/shm && sudo ln -s /run/shm /dev/shm"
- pip install -q -r $NUPIC/external/common/requirements.txt
- "mkdir -p $TRAVIS_BUILD_DIR/build/scripts"
- "cd $TRAVIS_BUILD_DIR/build/scripts"
- "cmake $NUPIC"
- "make -j3"
- "cd"
script:
# legacy binary tests
- "$NTA/bin/htmtest"
# (not quite everything, really)
- "$NTA/bin/testeverything"
# actual unit tests
- "cd $NUPIC"
- "$NUPIC/run_tests.sh --all"
# run all example files
# examples/bindings
- "python $NUPIC/examples/bindings/sparse_matrix_how_to.py"
## - "python $NUPIC/examples/bindings/svm_how_to.py" # tkinter missing in Travis build machine
## - "python $NUPIC/examples/bindings/temporal_pooler_how_to.py" # tkinter too
# examples/opf (run atleast 1 from each category)
- "python $NUPIC/examples/opf/bin/OpfRunExperiment.py $NUPIC/examples/opf/experiments/anomaly/spatial/2field_few_skewed/"
- "python $NUPIC/examples/opf/bin/OpfRunExperiment.py $NUPIC/examples/opf/experiments/anomaly/temporal/saw_200/"
- "python $NUPIC/examples/opf/bin/OpfRunExperiment.py $NUPIC/examples/opf/experiments/classification/category_TP_1/"
- "python $NUPIC/examples/opf/bin/OpfRunExperiment.py $NUPIC/examples/opf/experiments/missing_record/simple_0/"
- "python $NUPIC/examples/opf/bin/OpfRunExperiment.py $NUPIC/examples/opf/experiments/multistep/hotgym/"
- "python $NUPIC/examples/opf/bin/OpfRunExperiment.py $NUPIC/examples/opf/experiments/opfrunexperiment_test/simpleOPF/hotgym_1hr_agg/"
# opf/experiments/params - skip now
- "python $NUPIC/examples/opf/bin/OpfRunExperiment.py $NUPIC/examples/opf/experiments/spatial_classification/category_1/"
# examples/prediction
- "python $NUPIC/examples/prediction/RunExperiment.py $NUPIC/examples/prediction/experiments/dutyCycle/problem/"
# examples/tp
- "python $NUPIC/examples/tp/hello_tp.py"
- "python $NUPIC/examples/tp/tp_test.py"
after_script:
- travis_retry gem install travis-artifacts > /dev/null
- tar -zcf nupic-linux64-$TRAVIS_COMMIT.tar.gz -C $NTA/.. --transform=s/eng/nupic-linux64-$TRAVIS_COMMIT/ --exclude="*.pyc" eng
- travis-artifacts upload --path nupic-linux64-$TRAVIS_COMMIT.tar.gz --target-path $TRAVIS_REPO_SLUG