This repository has been archived by the owner on Dec 20, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
69 lines (62 loc) · 2.6 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
# @Author: Guan Gui <guiguan>
# @Date: 2018-01-24T14:35:24+11:00
# @Email: [email protected]
# @Last modified by: guiguan
# @Last modified time: 2018-01-25T23:30:10+11:00
#
# dbKoda - a modern, open source code editor, for MongoDB.
# Copyright (C) 2017-2018 Southbank Software
#
# This file is part of dbKoda.
#
# dbKoda is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# dbKoda is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with dbKoda. If not, see <http://www.gnu.org/licenses/>.
os: linux
dist: trusty
sudo: required
language: node_js
# Node version specified in .nvmrc
node_js: null
jdk: openjdk8
git:
depth: 3
submodules: false
before_install:
- git submodule update --init --recursive --recommend-shallow --remote
install:
- node -v
- java -version
- python --version
script:
- set -e
- yarn install --no-progress
- yarn gulp build
- (cd ./dbkoda/dist && for i in $(ls *.AppImage); do shasum -a 1 $i > $i.sha1; done)
- yarn gulp addVersionSuffixToBuildArtifact
- (cd ./dbkoda/dist && mkdir s3 && mv *.AppImage *.yml *.sha1 s3)
deploy:
provider: s3
access_key_id: $AWS_ACCESS_KEY_ID
secret_access_key: $AWS_SECRET_ACCESS_KEY
bucket: cloud-build
skip_cleanup: true
local_dir: dbkoda/dist/s3
region: ap-southeast-2
acl: public_read
notifications:
slack:
rooms:
- secure: MOYK4vJyGTPhjCAqlIyAs9bTvOzKmf9bRa9c5yrCXJUpphNCWkMKbJFFElOzjHH89X8lUwpE2p1xG5P+FDzLUT3F7vrMaqVWAmpxskpjWq9zonVp0haidTQeqq4j7Rh09HB0G0NwO8EOxsnNsGyavgchOhFIWrj0E5ltqhULmnu4ZcwJRjyrR07grp7kYf0o5iHkDabegh8Q9t7GXXqqc7k7BNxxsY4Dxa4YhY8ElllI5kr4p20YpgxfEgrHbrb58BPM7o36p7al51r17XW54xmMiGlGav3qWcyn0s2RXk178E+KNvze0NXKgp/yilkigjxTDgO8BlOoxMEXiUzVK8wpkNyHcC4FHT4acUV523pgJ98iSIDskSFFe7L9PpHEfEs0EmnQhDgdwkix5uVNqZWAcWGo6YrGnJbtcmQr6kWJkrIy00pnnSoJbqC60jd8pGP72gBgPQk+TbYGiMBqrKbW9TDQrfd1UUdm12bXm3HnkEBz9JNuHKN/z8WSAKfZDOS1a4tuFIVREXgDWFLLZ6MHDjUpL6T5W1c/lCmJZtzwijuFbqYmllpSDyjYuX4GfSFSTUnJuyI5xQa7Ofl9pzS5IkuSPebaYdaNbhpsKxL+no45L+xAA6OdFmjDwrFXmfLqqfshOYezLOSlbSuQTzGlg/HEi9agOzQz6mB7AlU=
template:
- 'Linux cloud build <%{build_url}|#%{build_number}> (<%{compare_url}|%{commit}>) by %{author} %{result} in %{duration}: %{commit_message}'
email: false