forked from fibjs/fibjs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
54 lines (51 loc) · 3.36 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
environment:
matrix:
- image: Visual Studio 2015
platform:
- x64
- x86
install:
- git submodule init
- git submodule update
test_script:
- IF /I "%APPVEYOR_BUILD_WORKER_IMAGE%" == "Visual Studio 2017" set NOXP=noxp
- IF /I "%PLATFORM%" == "x64" ECHO "x64 building..." && CALL "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" amd64 && build release amd64 !NOXP! && cd test && ..\bin\Windows_amd64_release\fibjs.exe main.js
- IF /I "%PLATFORM%" == "x86" ECHO "x86 building..." && CALL "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86 && build release i386 !NOXP! && cd test && ..\bin\Windows_i386_release\fibjs.exe main.js
- IF /I "%APPVEYOR_REPO_TAG%" == "false" set APPVEYOR_REPO_TAG_NAME=dist
- mkdir %APPVEYOR_REPO_TAG_NAME%
- IF /I "%PLATFORM%" == "x64" copy .\bin\Windows_amd64_release\fibjs.exe .\%APPVEYOR_REPO_TAG_NAME%\fibjs-%APPVEYOR_REPO_TAG_NAME%-windows-x64.exe
- IF /I "%PLATFORM%" == "x64" copy .\bin\Windows_amd64_release\fibjs_gui.exe .\%APPVEYOR_REPO_TAG_NAME%\fibjs-%APPVEYOR_REPO_TAG_NAME%-windows-gui-x64.exe
- IF /I "%PLATFORM%" == "x64" copy .\bin\Windows_amd64_release\installer.exe .\%APPVEYOR_REPO_TAG_NAME%\installer-%APPVEYOR_REPO_TAG_NAME%-windows-x64.exe
- IF /I "%PLATFORM%" == "x64" copy .\bin\Windows_amd64_release\fibjs.cab .\%APPVEYOR_REPO_TAG_NAME%\fibjs-%APPVEYOR_REPO_TAG_NAME%-windows-x64.cab
- IF /I "%PLATFORM%" == "x86" copy .\bin\Windows_i386_release\fibjs.exe .\%APPVEYOR_REPO_TAG_NAME%\fibjs-%APPVEYOR_REPO_TAG_NAME%-windows-x86.exe
- IF /I "%PLATFORM%" == "x86" copy .\bin\Windows_i386_release\fibjs_gui.exe .\%APPVEYOR_REPO_TAG_NAME%\fibjs-%APPVEYOR_REPO_TAG_NAME%-windows-gui-x86.exe
- IF /I "%PLATFORM%" == "x86" copy .\bin\Windows_i386_release\installer.exe .\%APPVEYOR_REPO_TAG_NAME%\installer-%APPVEYOR_REPO_TAG_NAME%-windows-x86.exe
- IF /I "%PLATFORM%" == "x86" copy .\bin\Windows_i386_release\fibjs.cab .\%APPVEYOR_REPO_TAG_NAME%\fibjs-%APPVEYOR_REPO_TAG_NAME%-windows-x86.cab
matrix:
fast_finish: true
artifacts:
- path: .\%APPVEYOR_REPO_TAG_NAME%\fibjs-%APPVEYOR_REPO_TAG_NAME%-windows-x64.exe
name: fibjs-%APPVEYOR_REPO_TAG_NAME%-windows-x64.exe
- path: .\%APPVEYOR_REPO_TAG_NAME%\fibjs-%APPVEYOR_REPO_TAG_NAME%-windows-gui-x64.exe
name: fibjs-%APPVEYOR_REPO_TAG_NAME%-windows-gui-x64.exe
- path: .\%APPVEYOR_REPO_TAG_NAME%\fibjs-%APPVEYOR_REPO_TAG_NAME%-windows-x64.cab
name: fibjs-%APPVEYOR_REPO_TAG_NAME%-windows-x64.cab
- path: .\%APPVEYOR_REPO_TAG_NAME%\installer-%APPVEYOR_REPO_TAG_NAME%-windows-x64.exe
name: installer-%APPVEYOR_REPO_TAG_NAME%-windows-x64.exe
- path: .\%APPVEYOR_REPO_TAG_NAME%\fibjs-%APPVEYOR_REPO_TAG_NAME%-windows-x86.exe
name: fibjs-%APPVEYOR_REPO_TAG_NAME%-windows-x86.exe
- path: .\%APPVEYOR_REPO_TAG_NAME%\fibjs-%APPVEYOR_REPO_TAG_NAME%-windows-gui-x86.exe
name: fibjs-%APPVEYOR_REPO_TAG_NAME%-windows-gui-x86.exe
- path: .\%APPVEYOR_REPO_TAG_NAME%\installer-%APPVEYOR_REPO_TAG_NAME%-windows-x86.exe
name: installer-%APPVEYOR_REPO_TAG_NAME%-windows-x86.exe
- path: .\%APPVEYOR_REPO_TAG_NAME%\fibjs-%APPVEYOR_REPO_TAG_NAME%-windows-x86.cab
name: fibjs-%APPVEYOR_REPO_TAG_NAME%-windows-x86.cab
deploy:
- provider: GitHub
auth_token:
secure: 16VBdcQ419efvcrd4msOXpevoyHAo+oe5Xyq0bmw4DU+UNSf5cNoJwbOvB5LLve2
draft: false
prerelease: false
on:
appveyor_repo_tag: true
build: off