forked from deepstreamIO/deepstream.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
100 lines (87 loc) · 1.91 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
95
96
97
98
99
100
sudo: true
language: node_js
git:
submodules: false
services:
- docker
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:
- "10"
env:
- DEFAULT_DELAY: 50
matrix:
include:
- node_js: "10"
os: linux
- node_js: "10"
os: osx
script:
- npm run lint;
- npm run test:all:coverage;
# These tests don't pass on CI
- npm run e2e:v3 || true;
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
before_deploy:
- bash ./scripts/package.sh true true
- npm run tsc # Just incase you know
deploy:
- provider: s3
access_key_id: ${ACCESS_KEY_ID}
secret_access_key: ${SECRET_ACCESS_KEY}
bucket: releases.deepstream.io
skip_cleanup: true
acl: public_read
local_dir: build
upload-dir: ${TRAVIS_REPO_SLUG}
on:
branch: master
- provider: releases
skip_cleanup: true
api_key: ${GITHUB_TOKEN}
file_glob: true
skip_cleanup: true
file:
- "build/*/*.pkg"
- "build/*/*.deb"
- "build/*/*.rpm"
- "build/*/*.tar.gz"
- "build/*/*.zip"
on:
tags: true
- provider: npm
email: "[email protected]"
api_key: ${NPM_TOKEN}
skip_cleanup: true
on:
tags: true
condition: $TRAVIS_OS_NAME = linux
- provider: script
script: bash scripts/docker.sh
skip_cleanup: true
on:
tags: true
condition: $TRAVIS_OS_NAME = linux