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 1
/
appveyor.yml
69 lines (58 loc) · 2.32 KB
/
appveyor.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: guiguan
# @Date: 2017-10-18T02:34:24+11:00
# @Email: [email protected]
# @Last modified by: guiguan
# @Last modified time: 2018-01-25T23:28:28+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/>.
environment:
nodejs_version: "8.9.1"
JAVA_HOME: C:\Program Files\Java\jdk1.8.0
version: '{build}.{branch}'
image: Visual Studio 2017
init:
- git config --global core.autocrlf true
clone_script:
- cmd: |
git clone -q --depth=3 --branch=%APPVEYOR_REPO_BRANCH% https://github.com/%APPVEYOR_REPO_NAME%.git %APPVEYOR_BUILD_FOLDER%
cd %APPVEYOR_BUILD_FOLDER%
git checkout -qf %APPVEYOR_REPO_COMMIT%
git submodule update --init --recursive --recommend-shallow --remote
install:
- ps: Install-Product node $env:nodejs_version
- node -v
- java -version
- python --version
build_script:
- yarn install --no-progress
- yarn gulp build --release
- ps: Get-ChildItem .\dbkoda\dist\*.exe | %{ certutil -hashfile $_.FullName SHA1 > "$($_.FullName).sha1" }
- yarn gulp addVersionSuffixToBuildArtifact
after_build:
- ps: Get-ChildItem .\dbkoda\dist\* -Include *.exe, *.yml, *.sha1 | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name -DeploymentName dbkodaExe }
test: off
deploy:
- provider: Environment
name: cloud-build
notifications:
- provider: Slack
incoming_webhook:
secure: /h1lUK1IriL1d59h1effsQhgOHq0uWSt3s6/+eLmiHZfqwuWaDCJnZ/erxbK5ENdoyrKN34bgi1uioLJhOBqx+WPiecxLgkgCGdQPYbnhc4=
channel: ci
template: 'Windows cloud build <{{buildUrl}}|#{{buildNumber}}> (<{{commitUrl}}|{{commitId}}>) by {{commitAuthor}} {{status}} in {{duration}}: {{commitMessage}}'