-
Notifications
You must be signed in to change notification settings - Fork 91
/
appveyor.yml
executable file
·137 lines (128 loc) · 4.42 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
129
130
131
132
133
134
135
136
137
version: 1.0.{build}
environment:
nodejs_version: "9.5.0"
s3-bucket-path:
secure: LYtUdyCOp3BE/HnR4JrMNGF8xbDDY+5h1qK7GCXgQBUC9cnkGtHU4apkryIc4d/j
s3-bucket-name:
secure: u4qHUlDVT5jyK3hIqNno4w==
s3-folder-path:
secure: weEMNt0NE85Ek4EFUmUnElnTcsKgA0qTnCOQIbpSb14=
platform:
- x64
image: Visual Studio 2015
cache:
- packages -> **\packages.config # preserve "packages" directory in the root of build folder but will reset it if packages.config is modified
- node_modules # local npm modules
- "%APPDATA%\npm-cache" # npm cache
build:
parallel: true
# Post-install test scripts.
install:
# Get the latest stable version of Node 0.STABLE.latest
- ps: Install-Product node $env:nodejs_version
- IF %nodejs_version% EQU 0.8 npm config set strict-ssl false
- IF %nodejs_version% LSS 4 npm -g install npm@2
- IF %nodejs_version% EQU 5 npm -g install npm@3
- set PATH=%APPDATA%\npm;%PATH%
- npm install
- npm i -g @angular-devkit/core
- npm install -g @angular/[email protected]
- npm i node-sass
- mkdir dist2
- ng build --prod --aot=false
#Cloning other repos
- git clone https://github.com/Kitsune-tools/Ana-Analytics-Dashboard.git
- git clone https://github.com/Kitsune-tools/ANAChat-Web.git
- rm -rf node_modules\
#For analytics-dash
- cd Ana-Analytics-Dashboard
- npm install typings -g
- npm i @angular-devkit/core
- npm install -g @angular/[email protected]
- npm i node-sass
- npm install
- ng build --prod --aot=false
- cd ..
- mkdir dist2\analytics-dashboard
- cp -R Ana-Analytics-Dashboard/dist/* dist2/analytics-dashboard/
- ls -l
- ls -l Ana-Analytics-Dashboard\
#For Chat-Web
- cd ANAChat-Web
- npm i node-sass
- npm install
- ng build --prod --aot=false
- cd ..
- mkdir dist2\simulator # For web chat
- ls -l ANAChat-Web\
- cp -R ANAChat-Web/dist/* dist2/simulator/
# For ana APP
- npm cache verify
- npm install -g [email protected]
- ls -l
- ls -l
- mkdir dist\simulator
- mkdir dist\analytics-dashboard
- cp -R dist2/simulator/* dist/simulator/
- cp -R dist2/analytics-dashboard/* dist/analytics-dashboard/
build_script:
# - npm i @angular-devkit/core
# - ng build --prod --aot=false
- cd dist
- ls -l
- npm i
- npm i -g [email protected]
- npm i -g @angular-devkit/core
- npm install -g electron-rebuild
- electron-rebuild -v 1.8.2
# - node_modules/.bin/electron-rebuild.cmd -v 1.8.2
- electron-builder && cd ..
# - aws s3api get-bucket-location --bucket %s3-bucket-name%
- mkdir deploy-folder
- cp release/Ana*.exe deploy-folder
- cp release/Ana*.exe.blockmap deploy-folder
- cp release/*.yml deploy-folder
# CLI Upload to s3
# - aws s3 cp release %s3-bucket-path%/win-ia32/ --exclude "win*" --include "Ana*.exe.blockmap" --recursive --acl public-read
# - aws s3 cp release %s3-bucket-path%/win-ia32/ --exclude "win*" --include "*.yml" --recursive --acl public-read
# - aws s3 cp release %s3-bucket-path%/win-ia32/ --exclude "win*" --include "Ana*.exe" --recursive --acl public-read
# - ECHO "File upload to S3 Successfull 32 bit"
# - aws s3 cp release %s3-bucket-path%/win-x64/ --exclude "win*" --include "Ana*.exe.blockmap" --recursive --acl public-read
# - aws s3 cp release %s3-bucket-path%/win-x64/ --exclude "win*" --include "*.yml" --recursive --acl public-read
# - aws s3 cp release %s3-bucket-path%/win-x64/ --exclude "win*" --include "Ana*.exe" --recursive --acl public-read
# - ECHO "File upload to S3 Successfull 64 bit"
deploy:
# FTP deployment provider settings
- provider: S3
access_key_id: "%AWS_ACCESS_KEY_ID%"
secret_access_key: "%AWS_SECRET_ACCESS_KEY%"
bucket: "%s3-bucket-name%"
region: ap-south-1
set_public: true
folder: s3-folder-path/win-x64
artifact: deploy-folder
on:
branch:
- release
- release-beta
# Amazon S3 deployment provider settings
- provider: S3
access_key_id: "%AWS_ACCESS_KEY_ID%"
secret_access_key: "%AWS_SECRET_ACCESS_KEY%"
bucket: "%s3-bucket-name%"
region: ap-south-1
set_public: true
folder: s3-folder-path/win-ia32
artifact: deploy-folder
on:
branch:
- release
- release-beta
notifications:
- provider: Email
to:
on_build_success: false
on_build_failure: false
on_build_status_changed: true