Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Releases3 #369

Merged
merged 3 commits into from
Apr 5, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 7 additions & 25 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ matrix:
include:
- os: linux
compiler: gcc
dist: xenial
dist: xenial #TODO upgrade to bionic when possible on Travis
# update required packages from Travis setup
# https://docs.travis-ci.com/user/languages/cpp/
addons:
Expand Down Expand Up @@ -40,45 +40,25 @@ matrix:
env:
global:
- NUPICCORE = ${TRAVIS_BUILD_DIR}
- BINARY_DIR = ${TRAVIS_BUILD_DIR}/build/scripts
- PATH=${TRAVIS_BUILD_DIR}/python/bin:$PATH
- PLATFORM=${TRAVIS_OS_NAME}
- ARCHFLAGS="-arch x86_64"
- BUNDLE_NAME="nupic_cpp-${TRAVIS_COMMIT}-${PLATFORM}64"
# # AWS keys are for manual uploads of wheel to S3.
# - AWS_ACCESS_KEY_ID=AKIAIGHYSEHV3WFKOWNQ
# # AWS_SECRET_ACCESS_KEY encrypted below
# - secure: "Ixm9TYZAZbCQicUTIZTY7XKNK82WF+f1jsaGtIxnGQmn0LKhKBjQnsZmhzQ7LDQeLUjRY3wM6xrX3YdP5T7WWiiqBiNCRz8oFxl/fBSm7LyuNo2CEGD9rsG6ZAY/sKKYNX5TuG78giJXwYZpq4LbVwy3W5ZlC626H7iXLQ6xDxw="
- GH_RELEASE_AUTH="HyRy03LIiUriPFW3HPmO+rRqmL1uxfsPLj6fqMykMq/Kmy478ROW/uOdNj42OEhsb6GwLngdjcHJtEzMGevnlNbWLLbTCuT2ykebysSt/oIKb/zAc/jYUI3OKuVWVEYFHlZa6fvkWZHKtWCcwa/jeF6bJFuPKkc3c3842aaW1SdEJG6osLGhJM+JtO1zD8+Z6RwL6T1Xbj+RYP/L28mejbphKxYL34bfLYse1lQ6/cFHzw8SdbvkDxWW+MRFHw8Ta8QiiV/7E83Z6N0+IRNi0s//3Affmkcs25modB4Auy8nrkUI4LQQr0NcUQZdo1RrylX9MH1B5KHs1hyNJvhRFiQlSBvXv0ezq6F5N8wamnBX12/2FDFI1nWl05hofQ7X07aWyQLu5v7Q34xX/pW5lca1G3H14auye8gSzC80692fOyId1F4QwcDIkeWiQwAMgE1qSifgTD3dEGJeDbAOPLd7I/fskxUjIvpEWR6dM3IKzMzr1dFilImhdvVsEEeROldpE0JleZFrv39NyMWTx6sGo9MLrtep+5/iRz1T0zKLfQjwUnAm/LW66g9vQ+lnhL9ktElnitnvaj1x5auAIsPNVdfagdwvGdeuZ65uJGtgEVAjOjspCDeYu9ztqPSZ3Hj3SAyELJkuu/RFScLOQayazg03O+zsvhDTtw8xfdo="

virtualenv:
system_site_packages: false

# Successful builds are archived and uploaded to S3 for bamboo releases.
before_deploy:
- cd $TRAVIS_BUILD_DIR
- ./ci/travis/before_deploy.sh
- tar -zcvf $TRAVIS_BUILD_DIR/build/Release/${BUNDLE_NAME}.tar.gz $BINARY_DIR/dist
- tar -zcvf $TRAVIS_BUILD_DIR/build/Release/${BUNDLE_NAME}.tar.gz $TRAVIS_BUILD_DIR/build/Release/

deploy:
## AWS S3
# provider: s3
# access_key_id: AKIAIGHYSEHV3WFKOWNQ
# secret_access_key:
# secure: YhyY/6r2LNya8OZEmVOj+fv0lY5bBPqvy8MnsdLlptXa2uqwvezkCMNKiQ+wA+tOu+BS7VRRp86DhUqCpTZ3jUM2Mwdhud/Smq7D2X8vtZBiTVcOKfQcaypDE6Zu9Zp0SjMOSf6yiq6Ruu7D5QtZ4rtaq+5uPlvbgUXRZoZm0Po=
# bucket: artifacts.numenta.org
# region: us-west-2
# local-dir: "$TRAVIS_BUILD_DIR/release"
# upload-dir: "numenta/nupic.core"
# skip_cleanup: true
# # Deploying on master branch from osx/clang
# on:
# branch: master
# condition:
# - "( ${TRAVIS_OS_NAME}--${CC} = 'osx--clang' )"
## Github releases
provider: releases
api_key:
secure: "HyRy03LIiUriPFW3HPmO+rRqmL1uxfsPLj6fqMykMq/Kmy478ROW/uOdNj42OEhsb6GwLngdjcHJtEzMGevnlNbWLLbTCuT2ykebysSt/oIKb/zAc/jYUI3OKuVWVEYFHlZa6fvkWZHKtWCcwa/jeF6bJFuPKkc3c3842aaW1SdEJG6osLGhJM+JtO1zD8+Z6RwL6T1Xbj+RYP/L28mejbphKxYL34bfLYse1lQ6/cFHzw8SdbvkDxWW+MRFHw8Ta8QiiV/7E83Z6N0+IRNi0s//3Affmkcs25modB4Auy8nrkUI4LQQr0NcUQZdo1RrylX9MH1B5KHs1hyNJvhRFiQlSBvXv0ezq6F5N8wamnBX12/2FDFI1nWl05hofQ7X07aWyQLu5v7Q34xX/pW5lca1G3H14auye8gSzC80692fOyId1F4QwcDIkeWiQwAMgE1qSifgTD3dEGJeDbAOPLd7I/fskxUjIvpEWR6dM3IKzMzr1dFilImhdvVsEEeROldpE0JleZFrv39NyMWTx6sGo9MLrtep+5/iRz1T0zKLfQjwUnAm/LW66g9vQ+lnhL9ktElnitnvaj1x5auAIsPNVdfagdwvGdeuZ65uJGtgEVAjOjspCDeYu9ztqPSZ3Hj3SAyELJkuu/RFScLOQayazg03O+zsvhDTtw8xfdo="
secure: "$GH_RELEASE_AUTH"
file: "$TRAVIS_BUILD_DIR/build/Release/${BUNDLE_NAME}.tar.gz"
skip_cleanup: true
on:
Expand Down Expand Up @@ -130,10 +110,12 @@ script:
# unit tests
- "cd $TRAVIS_BUILD_DIR/build/Release/bin"
- "${TRAVIS_BUILD_DIR}/build/Release/bin/unit_tests --gtest_output=xml:${TRAVIS_BUILD_DIR}/build/artifacts/unit_tests_report.xml"
# run python tests
# run python bindings tests
- echo "Python bindings tests"
- cd ${TRAVIS_BUILD_DIR}
- "python setup.py test"
# run memory leak tests with valgrind
- echo "Memory leak detection with valgrind"
- export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${TRAVIS_BUILD_DIR}/build/Release/lib
- valgrind --leak-check=full --show-leak-kinds=all --error-exitcode=3 ${TRAVIS_BUILD_DIR}/build/Release/bin/benchmark_hotgym 5 || exit 1
# output unit tests report
Expand Down
5 changes: 0 additions & 5 deletions ci/travis/README.md

This file was deleted.

55 changes: 0 additions & 55 deletions ci/travis/before_deploy.sh

This file was deleted.