forked from chhenning/nupic.core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request numenta#34 from htm-community/numenta_update
Numenta update
- Loading branch information
Showing
285 changed files
with
60,633 additions
and
67,479 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,142 @@ | ||
version: 2 | ||
jobs: | ||
build-and-test: | ||
macos: | ||
xcode: '9.0.1' | ||
working_directory: ~/numenta/nupic.core | ||
parallelism: 1 | ||
environment: | ||
XCODE_SCHEME: nupic | ||
XCODE_WORKSPACE: nupic | ||
ARCHFLAGS: -arch x86_64 | ||
PYTHONPATH: ~/Library/Python/2.7/lib/python/site-packages | ||
PYBIN: ~/Library/Python/2.7/bin | ||
steps: | ||
# Machine Setup | ||
- run: | ||
name: Make sure to use OS X in CircleCI Web UI | ||
command: | | ||
if [[ "$OSTYPE" != "darwin"* ]]; then | ||
echo "Must set option to use OS X in CircleCI Web UI" && exit 1; | ||
fi | ||
- run: sudo systemsetup -settimezone 'GMT' | ||
- run: | ||
name: Restoring system python | ||
command: | | ||
brew uninstall python | ||
curl https://bootstrap.pypa.io/get-pip.py | python - --user | ||
echo 'export PATH=$HOME/Library/Python/2.7/bin:$PATH' >> $BASH_ENV | ||
- run: | ||
name: Installing cmake | ||
command: brew install cmake | ||
|
||
- checkout | ||
|
||
# Dependencies | ||
# Restore the dependency cache | ||
- restore_cache: | ||
keys: | ||
# This branch if available | ||
- v1-dep-{{ .Branch }}- | ||
# Default branch if not | ||
- v1-dep-master- | ||
# Any branch if there are none on the default branch - this should be | ||
# unnecessary if you have your default branch configured correctly | ||
- v1-dep- | ||
|
||
- run: | ||
name: Installing dependencies | ||
command: | | ||
pip install --user --upgrade --verbose pip setuptools setuptools-scm | ||
pip install --no-cache-dir --user -r bindings/py/requirements.txt --verbose || exit | ||
# Save dependency cache | ||
- save_cache: | ||
key: v1-dep-{{ .Branch }}-{{ epoch }} | ||
paths: | ||
# This is a broad list of cache paths to include many possible | ||
# development environments. | ||
- vendor/bundle | ||
- ~/virtualenvs | ||
- ~/.m2 | ||
- ~/.ivy2 | ||
- ~/.bundle | ||
- ~/.go_workspace | ||
- ~/.gradle | ||
- ~/.cache/bower | ||
|
||
# Build | ||
- run: | ||
name: Compiling | ||
environment: | ||
VERBOSE: 1 | ||
command: | | ||
mkdir -p build/scripts | ||
cd build/scripts | ||
cmake ../.. -DCMAKE_BUILD_TYPE=Release -DNTA_COV_ENABLED=ON -DCMAKE_INSTALL_PREFIX=../release -DPY_EXTENSIONS_DIR=../../bindings/py/src/nupic/bindings | ||
make | grep -v -F '\\-\\- Installing:' | ||
make install 2>&1 | grep -v -F 'Installing:' | ||
- run: | ||
name: Build distribution | ||
command: | | ||
python setup.py bdist_wheel | ||
mkdir -p dist/include/nupic | ||
mv bindings/py/dist/*.whl dist/ | ||
cp bindings/py/requirements.txt dist/ | ||
cp build/release/include/nupic/Version.hpp dist/include/nupic/ | ||
# Test | ||
- run: | ||
name: Running python tests | ||
command: | | ||
mkdir -p tests/py | ||
pip install --user --no-index --find-links=$CIRCLE_WORKING_DIRECTORY/dist/ nupic.bindings | ||
py.test --junitxml tests/py/junit-test-results.xml bindings/py/tests | ||
- run: | ||
name: Running C++ Tests | ||
command: | | ||
mkdir -p tests/cpp | ||
pushd build/release/bin | ||
./cpp_region_test | ||
./py_region_test | ||
./helloregion | ||
./hello_sp_tp | ||
./prototest | ||
./unit_tests --gtest_output=xml:$CIRCLE_WORKING_DIRECTORY/tests/cpp/unit_tests_report.xml | ||
- store_test_results: | ||
path: tests | ||
|
||
- store_artifacts: | ||
path: dist/*.whl | ||
|
||
- persist_to_workspace: | ||
root: dist | ||
paths: | ||
- nupic.bindings*.whl | ||
- requirements.txt | ||
- include/nupic | ||
|
||
deploy-s3: | ||
machine: true | ||
steps: | ||
- attach_workspace: | ||
at: dist | ||
- run: | ||
name: Deploying to S3 | ||
command: | | ||
pip install awscli --upgrade --user | ||
tar -zcv -f nupic_core-${CIRCLE_SHA1}-darwin64.tar.gz dist | ||
aws s3 cp nupic_core-${CIRCLE_SHA1}-darwin64.tar.gz s3://artifacts.numenta.org/numenta/nupic.core/circle/ | ||
workflows: | ||
version: 2 | ||
build-test-deploy: | ||
jobs: | ||
- build-and-test | ||
- deploy-s3: | ||
requires: | ||
- build-and-test | ||
filters: | ||
branches: | ||
only: master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,66 +1,5 @@ | ||
--- | ||
Language: Cpp | ||
# BasedOnStyle: LLVM | ||
AccessModifierOffset: -2 | ||
AlignAfterOpenBracket: true | ||
AlignEscapedNewlinesLeft: false | ||
AlignOperands: true | ||
AlignTrailingComments: true | ||
AlignConsecutiveAssignments: false | ||
AllowAllParametersOfDeclarationOnNextLine: true | ||
AllowShortBlocksOnASingleLine: false | ||
AllowShortCaseLabelsOnASingleLine: false | ||
AllowShortIfStatementsOnASingleLine: false | ||
AllowShortLoopsOnASingleLine: false | ||
AllowShortFunctionsOnASingleLine: All | ||
AlwaysBreakAfterDefinitionReturnType: false | ||
AlwaysBreakTemplateDeclarations: false | ||
AlwaysBreakBeforeMultilineStrings: false | ||
BreakBeforeBinaryOperators: None | ||
BreakBeforeTernaryOperators: true | ||
BreakConstructorInitializersBeforeComma: false | ||
BinPackParameters: true | ||
BinPackArguments: true | ||
ColumnLimit: 80 | ||
ConstructorInitializerAllOnOneLineOrOnePerLine: false | ||
ConstructorInitializerIndentWidth: 4 | ||
DerivePointerAlignment: false | ||
ExperimentalAutoDetectBinPacking: false | ||
IndentCaseLabels: false | ||
IndentWrappedFunctionNames: false | ||
IndentFunctionDeclarationAfterType: false | ||
MaxEmptyLinesToKeep: 1 | ||
KeepEmptyLinesAtTheStartOfBlocks: true | ||
NamespaceIndentation: None | ||
ObjCBlockIndentWidth: 2 | ||
ObjCSpaceAfterProperty: false | ||
ObjCSpaceBeforeProtocolList: true | ||
PenaltyBreakBeforeFirstCallParameter: 19 | ||
PenaltyBreakComment: 300 | ||
PenaltyBreakString: 1000 | ||
PenaltyBreakFirstLessLess: 120 | ||
PenaltyExcessCharacter: 1000000 | ||
PenaltyReturnTypeOnItsOwnLine: 60 | ||
PointerAlignment: Right | ||
SpacesBeforeTrailingComments: 1 | ||
Cpp11BracedListStyle: true | ||
Standard: Cpp11 | ||
IndentWidth: 2 | ||
TabWidth: 8 | ||
UseTab: Never | ||
BreakBeforeBraces: Attach | ||
SpacesInParentheses: false | ||
SpacesInSquareBrackets: false | ||
SpacesInAngles: false | ||
SpaceInEmptyParentheses: false | ||
SpacesInCStyleCastParentheses: false | ||
SpaceAfterCStyleCast: false | ||
SpacesInContainerLiterals: true | ||
SpaceBeforeAssignmentOperators: true | ||
ContinuationIndentWidth: 4 | ||
CommentPragmas: '^ IWYU pragma:' | ||
ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ] | ||
SpaceBeforeParens: ControlStatements | ||
DisableFormat: false | ||
Language: Cpp | ||
BasedOnStyle: LLVM | ||
DisableFormat: false | ||
... | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.0.4.dev0 | ||
1.0.7.dev0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ numpy==1.12.1 | |
pytest==3.0.7 | ||
pytest-cov==2.5.0 | ||
pytest-xdist==1.16.0 | ||
pycapnp==0.5.12 | ||
pycapnp==0.6.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.