forked from numenta/nupic-legacy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
75 lines (62 loc) · 2.27 KB
/
Copy path.travis.yml
File metadata and controls
75 lines (62 loc) · 2.27 KB
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
branches:
except:
- gh-pages
language: cpp
os:
- linux
- osx
compiler:
- clang
- gcc
env:
global:
- NUPIC=$TRAVIS_BUILD_DIR
- PATH=$TRAVIS_BUILD_DIR/python/bin:$PATH
matrix:
# This excludes OSX builds from the build matrix for gcc and Python 2.6
exclude:
- os: osx
compiler: gcc
# Successful builds are archived and uploaded to S3 for regression testing.
before_deploy:
- "if [ ${TRAVIS_OS_NAME:-'linux'} = 'linux' ]; then . ./ci/travis/before_deploy-linux.sh; fi"
deploy:
provider: s3
access_key_id: AKIAIGHYSEHV3WFKOWNQ
secret_access_key:
secure: "ONG00ZCPpfU/nugFiON3K2q8IMk3nB/aAUj2Ggjf1z0CJS/cvnfIexmJhe+DJCccoco2l5gpiqp7gweH5vXEcyrzTt1I3Z+iFNas2cQ/wF3LjW0NcbdGeC9NN9kGIoOvr8g6L66CUvazYoirgbJO01ktm7LVNeGS3Q1pk36Vp10="
bucket: artifacts.numenta.org
region: us-west-2
local-dir: "dist"
upload-dir: "numenta/nupic/${TRAVIS_COMMIT}"
skip_cleanup: true
# Only deploy on master from one build job: linux, clang
on:
branch: master
condition:
- "$TRAVIS_OS_NAME == linux"
- "$CC == clang"
git:
submodules: false
notifications:
irc:
channels:
- "irc.freenode.net#nupic-hackers"
webhooks:
urls:
- http://issues.numenta.org:8081/travis
- https://webhooks.gitter.im/e/68f77bae61efa5c931f8
before_install:
# install gcc-4.8 for C++11 compatibility, #TODO remove when Travis has gcc>=4.8, (it's used for clang too, in coveralls)
- "if [ ${TRAVIS_OS_NAME:-'linux'} = 'linux' ]; then 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'; fi"
- "if [ $CC = 'gcc' ]; then export CC='gcc-4.8'; export CXX='g++-4.8'; fi"
- "if [ ${TRAVIS_OS_NAME:-'linux'} = 'linux' ]; then . ./ci/travis/before_install-linux.sh; fi"
- "if [ ${TRAVIS_OS_NAME:-'linux'} = 'osx' ]; then . ./ci/travis/before_install-osx.sh; fi"
install:
- "if [ ${TRAVIS_OS_NAME:-'linux'} = 'linux' ]; then . ./ci/travis/install-linux.sh; fi"
- "if [ ${TRAVIS_OS_NAME:-'linux'} = 'osx' ]; then . ./ci/travis/install-osx.sh; fi"
script:
- . ./ci/travis/script-run-tests.sh
after_success:
- cd ${TRAVIS_BUILD_DIR}
- "if [ ${TRAVIS_OS_NAME:-'linux'} = 'linux' ]; then . ./ci/travis/after_success-report-coverage-linux.sh; fi"