-
Notifications
You must be signed in to change notification settings - Fork 12
/
.appveyor.yml
62 lines (58 loc) · 4.08 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
version: "{build}"
branches:
only:
- dev
- devops
- master
- /^\d+\.\d+(\.\d+)?(-\S*)?$/
skip_branch_with_pr: true
image: Visual Studio 2017
clone_folder: c:\SRC\control-center
environment:
decrypt_key:
secure: NBsr6b52BdT084Ca0vMPLbmP/mILkLvErsxw1k0YOrM=
decrypt_salt:
secure: F6X/w9XCHBi5Bq7iRXtdakP4moLjARHEEWW5Z/UHc+Gb+3P95+dIaPU2L6NIYHTxBctX1D/oqLANCq94gSyCMg==
matrix:
- QT: C:\Qt\5.10.1\msvc2017_64
PLATFORM: amd64
COMPILER: msvc
TOXENV: py36
PYTHON: "C:\\Python36-x64"
install:
- ps: iex ((New-Object Net.WebClient).DownloadString('https://raw.githubusercontent.com/appveyor/secure-file/master/install.ps1'))
- set PATH=%PATH%;%QT%\bin\;C:\Qt\Tools\QtCreator\bin\;
# - nuget install secure-file
- git clone https://github.com/subutai-io/devops.git C:\devops
- cmd: appveyor-tools\secure-file -decrypt C:\devops\cc.tar.gz.enc -secret %decrypt_key% -salt %decrypt_salt% -out C:\devops\cc.tar.gz
- C:\msys64\usr\bin\bash -lc "tar -xf /C/devops/cc.tar.gz -C /C/devops"
- "%PYTHON%\\python.exe -m pip install requests python-gnupg subutai-bazaar"
build_script:
- C:\msys64\usr\bin\bash -lc "wget -nv -O /C/SRC/control-center/libs.tar.gz 'https://masterbazaar.subutai.io/rest/v1/cdn/raw?name=libs.tar.gz&latest&download' && tar -xf /C/SRC/control-center/libs.tar.gz -C /C/SRC/control-center"
- cmd: build_win.bat
deploy_script:
- C:\msys64\usr\bin\bash -lc "ls -l /C/SRC/control-center"
- C:\msys64\usr\bin\bash -lc "ls -l /C/SRC/control-center/subutai_control_center_bin"
- C:\msys64\usr\bin\bash -lc "cp /C/SRC/control-center/subutai_control_center_bin/SubutaiControlCenter.exe /C/SRC/SubutaiControlCenter-devops.exe"
- gpg.exe --allow-secret-key-import --import C:\devops\[email protected]
- gpg.exe --allow-secret-key-import --import C:\devops\[email protected]
# - C:\msys64\usr\bin\bash -lc "cd /C/devops && gpg --allow-secret-key-import --import [email protected]"
# - C:\msys64\usr\bin\bash -lc "cd /C/devops && gpg --allow-secret-key-import --import [email protected]"
- C:\msys64\usr\bin\bash -lc "cd /C/devops && rm -f *.gpg"
- gpg.exe --list-keys
- if "%APPVEYOR_REPO_BRANCH%" == "devops" (
%PYTHON%\\python.exe C:\\devops\\upload.py [email protected] --fingerprint=877B586E74F170BC4CF6ECABB971E2AC63D23DC9 --file=C:\\SRC\\SubutaiControlCenter-devops.exe
%PYTHON%\\python.exe C:\\devops\\upload.py [email protected] --fingerprint=877B586E74F170BC4CF6ECABB971E2AC63D23DC9 --file=C:\\SRC\\control-center\\subutai_control_center_bin\\subutai-control-center-devops.msi
)
- if "%APPVEYOR_REPO_BRANCH%" == "dev" (
%PYTHON%\\python.exe C:\\devops\\upload.py [email protected] --fingerprint=877B586E74F170BC4CF6ECABB971E2AC63D23DC9 --file=C:\\SRC\\SubutaiControlCenter-dev.exe --host=devbazaar.subutai.io
%PYTHON%\\python.exe C:\\devops\\upload.py [email protected] --fingerprint=877B586E74F170BC4CF6ECABB971E2AC63D23DC9 --file=C:\\SRC\\control-center\\subutai_control_center_bin\\subutai-control-center-dev.msi --host=devbazaar.subutai.io
)
- if "%APPVEYOR_REPO_BRANCH%" == "master" (
%PYTHON%\\python.exe C:\\devops\\upload.py [email protected] --fingerprint=877B586E74F170BC4CF6ECABB971E2AC63D23DC9 --file=C:\\SRC\\SubutaiControlCenter-master.exe --host=masterbazaar.subutai.io
%PYTHON%\\python.exe C:\\devops\\upload.py [email protected] --fingerprint=877B586E74F170BC4CF6ECABB971E2AC63D23DC9 --file=C:\\SRC\\control-center\\subutai_control_center_bin\\subutai-control-center-master.msi --host=masterbazaar.subutai.io
)
- if "%APPVEYOR_REPO_TAG%" == "true" (
%PYTHON%\\python.exe C:\\devops\\upload.py [email protected] --fingerprint=877B586E74F170BC4CF6ECABB971E2AC63D23DC9 --file=C:\\SRC\\SubutaiControlCenter.exe
%PYTHON%\\python.exe C:\\devops\\upload.py [email protected] --fingerprint=877B586E74F170BC4CF6ECABB971E2AC63D23DC9 --file=C:\\SRC\\control-center\\subutai_control_center_bin\\subutai-control-center.msi
)