-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathappveyor.yml
129 lines (108 loc) · 3.76 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
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
branches:
only:
- master
- dev
image:
- Visual Studio 2017
- Ubuntu
- macos
platform:
- x64
clone_depth: 5
environment:
APPVEYOR_YML_DISABLE_PS_LINUX: true
nodejs_version: "12.18.3"
for:
-
matrix:
only:
- image: macos
init:
- sh: cd $HOME/projects/sete
-
matrix:
only:
- image: Ubuntu
init:
# Install basic packages in Ubuntu
- sh: sudo apt-get update && sudo apt-get install -y fakeroot dpkg rpm
-
matrix:
only:
- image: Visual Studio 2017
init:
# Init (set x64 VC) on Windows
- cmd: call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
# Install scripts
install:
# - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
# - sh: curl -sflL 'https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-ssh.sh' | bash -e -
# - sh: curl -sflL 'https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-vnc.sh' | bash -e -
# Add Wix to Windows Build Path
- cmd: dir "c:\Program Files (x86)\WiX Toolset"*
- cmd: set PATH="c:\Program Files (x86)\WiX Toolset v3.11\bin";%PATH%
# Get the latest LTS version of Node.js in Windows
- ps: Install-Product node $env:nodejs_version x64
# Set NPM in Windows to use Visual Studio 2017 and Python x64
- cmd: npm config set msvs_version "2017"
- cmd: npm config set python "C:\\Python27-x64\\pythonw.exe"
# Get the latest LTS version of Node.js in MAC and Linux
- sh: nvm install $nodejs_version
- sh: nvm use $nodejs_version
# Install Yarn
- sh: npm install yarn
# Install Packages
- cmd: npm install
- sh: npm install --no-optional
# Webify
- ps: .\webify.ps1
- sh: chmod +x webify.sh
- sh: chmod +x webify_macos.sh
# Linux Webify
- sh: echo ${APPVEYOR_BUILD_WORKER_IMAGE}
- sh: if test ${APPVEYOR_BUILD_WORKER_IMAGE} = "Ubuntu"; then ./webify.sh; fi
- sh: if test ${APPVEYOR_BUILD_WORKER_IMAGE} = "macOS"; then ./webify_macos.sh; fi
# Rebuild native packages
# Install SQLite from Source (Native Module)
# Previous --target=8.5.2
# - npm install sqlite3 --build-from-source --runtime=electron --target=11.2.2 --dist-url=https://electronjs.org/headers
build_script:
- cmd: set PATH=C:\projects\sete\node_modules\.bin;%PATH%
- npm run make
artifacts:
- path: "\\out\\make\\wix\\x64\\sete.msi"
name: WinBinaries
- path: "\\out\\make\\deb\\x64\\sete*"
name: DebBinaries
- path: "\\out\\make\\rpm\\x64\\sete*"
name: RpmBinaries
- path: "\\out\\make\\sete*"
name: MacBinaries
deploy:
release: SETE-v$(APPVEYOR_REPO_TAG_NAME)
description: 'AUTOMATIC BUILD'
provider: GitHub
draft: true
auth_token:
secure: 7HN67saSTjfsfOL7pPkVAJ+o/QfMFR5I7OFbOYgDBi6liWtPRijfO3O/tXB4ekh5
artifact: WinBinaries, DebBinaries, RpmBinaries, MacBinaries
on:
branch: master
APPVEYOR_REPO_TAG: true
# deploy:
# release: SETE-v$(APPVEYOR_BUILD_VERSION)
# description: 'SETE v1.0.0'
# provider: GitHub
# auth_token:
# secure: o9FnGoA7kIQPmz6pI/uzpPbOrolyu2jgAzTVV7Ld6TdbmM3pSh60UR7PU2B9FzpF
# artifact: WinBinaries
# on:
# branch: master # release from master branch only
on_finish:
- cmd: ECHO Exiting...
- sh: echo Exiting...
# - sh: export APPVEYOR_SSH_BLOCK=true
# - sh: curl -sflL 'https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-ssh.sh' | bash -e -
# - sh: export APPVEYOR_VNC_BLOCK=true
# - sh: curl -sflL 'https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-vnc.sh' | bash -e -
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))