forked from deepstreamIO/deepstream.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
94 lines (81 loc) · 2.27 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
94
sudo: true
language: node_js
git:
submodules: false
before_install:
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then
sed -i '' 's/[email protected]:/https:\/\/github.com\//' .gitmodules;
if [ "$CC" == "gcc" ]; then
export CC=$(ls -t /usr/local/bin/gcc-?.?);
fi
fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then
sed -i 's/[email protected]:/https:\/\/github.com\//' .gitmodules;
export CXX=g++-4.8;
fi
- git submodule update --init --recursive
- gem install fpm --conservative || echo "FPM install failed"
compiler:
- gcc
- clang
node_js:
- "8"
- "6.11"
env:
- DEFAULT_DELAY: 50
matrix:
include:
- node_js: "6.11"
os: osx
script:
# This fails on node 4
- if [[ "$TRAVIS_NODE_VERSION" == "6.11"* ]]; then
npm run lint;
fi
- npm run test:coverage
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then
sh scripts/run-e2e.sh;
fi
# This has to happen here and not in before_deploy to be put in travis cache
- bash ./scripts/package.sh
cache:
directories:
- nexe_node
deploy:
- provider: s3
access_key_id:
secure: "C5eMLmRbwlQQtLIsEOhHr659JW87/N4PFBYsrAbDhr0T7CJrlQYkCgRvMMOgJFoq8QcDKVgPRTHKwtpgBwgjAcJIzOV57niI1DKHAdrgsQe+3dBe2bu77olV2JPhQWVwl2+5xS2oCbj/3bKJ2ykmA2I9GximVaV65MXnKbTdPTM="
secret_access_key:
secure: "eMyOkvuEveHR3e6VmQLvvWjklwLSeMw+bcPHxxjskeLfQc8bijmKM1ZFMWdmLUCaSjp5cse/XkSs5Sa+ObV2CUZatRz7XJxAMZjNnB3nApmR+vLRau2zQ8xxmHXbNeJMeMzhzpANB4vkXXEKJlbizjbFjL3nZ3duHlks2/lckVI="
bucket: ds-server-artifacts
skip_cleanup: true
acl: public_read
local_dir: build
upload-dir: $TRAVIS_REPO_SLUG
on:
branch: master
- provider: releases
skip_cleanup: true
api_key:
secure: "UeDGbc9qehbKD63mNT4IebRpcPdctgqAlk7GNrz6/l6rPBsyLALd0o7mqHYcF0Dd2kMew1fDBiQEBUMTuFaggvGyKDmDkqGCdfo/6dGH07FzTpCwXisZ6u5eXo30deT5q94K1kaU17h8gmowBwmrU6iLXRrxCb6fkq58GX8P9tE="
file_glob: true
file:
- "build/*.pkg"
- "build/*.deb"
- "build/*.rpm"
- "build/*.tar.gz"
- "build/*.zip"
on:
tags: true
services:
- redis-server
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
- rpm
after_script: "cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js"
notifications:
email: false