Skip to content

Commit 33bf031

Browse files
chcgdail8859
authored andcommitted
appveyor.yml for CI builds and deployment of releases to github
1 parent faba78b commit 33bf031

File tree

3 files changed

+70
-4
lines changed

3 files changed

+70
-4
lines changed

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
# LuaScript
2+
3+
[![Build status](https://ci.appveyor.com/api/projects/status/lxmu20jgggdm0xl3/branch/master?svg=true)](https://ci.appveyor.com/project/dail8859/luascript/branch/master)
4+
25
Notepad++ plugin for [Lua](http://www.lua.org/) scripting capabilities. This provides control over all of Scintilla's features and options with a light-weight, fully-functional programming language.
36

47
Major features include:

appveyor.yml

+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
version: 0.7.0.{build}
2+
image: Visual Studio 2015
3+
4+
platform:
5+
- x64
6+
- Win32
7+
8+
configuration:
9+
- Release
10+
- Debug
11+
12+
install:
13+
- if "%platform%"=="x64" set archi=amd64
14+
- if "%platform%"=="Win32" set archi=x86
15+
- call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" %archi%
16+
17+
build:
18+
parallel: true
19+
verbosity: minimal
20+
21+
build_script:
22+
- cd "%APPVEYOR_BUILD_FOLDER%"
23+
- msbuild LuaScript.sln /p:configuration="%configuration%" /p:platform="%platform%"
24+
25+
after_build:
26+
- cd "%APPVEYOR_BUILD_FOLDER%"
27+
- ps: >-
28+
29+
if ($env:PLATFORM -eq "x64") {
30+
Push-AppveyorArtifact "bin\$($env:CONFIGURATION)_$($env:PLATFORM)\LuaScript_64.dll" -FileName LuaScript_64.dll
31+
}
32+
33+
if ($env:PLATFORM -eq "Win32" ) {
34+
Push-AppveyorArtifact "bin\$($env:CONFIGURATION)_$($env:PLATFORM)\LuaScript.dll" -FileName LuaScript.dll
35+
}
36+
37+
if ($($env:APPVEYOR_REPO_TAG) -eq "true" -and $env:CONFIGURATION -eq "Release") {
38+
if ($env:PLATFORM -eq "x64"){
39+
$ZipFileName = "LuaScript$($env:APPVEYOR_REPO_TAG_NAME)_x64.zip"
40+
7z a $ZipFileName bin\$($env:CONFIGURATION)_$($env:PLATFORM)\*.dll
41+
}
42+
if ($env:PLATFORM -eq "Win32"){
43+
$ZipFileName = "LuaScript$($env:APPVEYOR_REPO_TAG_NAME).zip"
44+
7z a $ZipFileName bin\$($env:CONFIGURATION)_$($env:PLATFORM)\*.dll
45+
}
46+
}
47+
48+
artifacts:
49+
- path: LuaScript*.zip
50+
name: releases
51+
52+
deploy:
53+
provider: GitHub
54+
auth_token:
55+
secure: qrw+nu8dQKFLG+lNmky6buHsvHFwlibAai0r0aJ3MYbyBniONVxvgnmyx37bPh44
56+
artifact: releases
57+
draft: true
58+
prerelease: false
59+
force_update: true
60+
on:
61+
branch: master
62+
appveyor_repo_tag: true
63+
configuration: Release

src/LuaScript.vcxproj

+4-4
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@
121121
<AdditionalLibraryDirectories>$(SolutionDir)bin\$(Configuration)_$(Platform)\;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
122122
</Link>
123123
<PostBuildEvent>
124-
<Command>copy "$(TargetPath)" "C:\Program Files (x86)\Notepad++\plugins"</Command>
124+
<Command>if EXIST "C:\Program Files (x86)\Notepad++\plugins" (copy "$(TargetPath)" "C:\Program Files (x86)\Notepad++\plugins")</Command>
125125
</PostBuildEvent>
126126
</ItemDefinitionGroup>
127127
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
@@ -156,7 +156,7 @@
156156
<AdditionalLibraryDirectories>$(SolutionDir)bin\$(Configuration)_$(Platform)\;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
157157
</Link>
158158
<PostBuildEvent>
159-
<Command>copy "$(TargetPath)" "C:\Program Files\Notepad++\plugins"</Command>
159+
<Command>if EXIST "C:\Program Files\Notepad++\plugins" (copy "$(TargetPath)" "C:\Program Files\Notepad++\plugins")</Command>
160160
</PostBuildEvent>
161161
</ItemDefinitionGroup>
162162
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
@@ -187,7 +187,7 @@
187187
<AdditionalLibraryDirectories>$(SolutionDir)bin\$(Configuration)_$(Platform)\;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
188188
</Link>
189189
<PostBuildEvent>
190-
<Command>copy "$(TargetPath)" "C:\Program Files (x86)\Notepad++\plugins"</Command>
190+
<Command>if EXIST "C:\Program Files (x86)\Notepad++\plugins" (copy "$(TargetPath)" "C:\Program Files (x86)\Notepad++\plugins")</Command>
191191
</PostBuildEvent>
192192
</ItemDefinitionGroup>
193193
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
@@ -216,7 +216,7 @@
216216
<AdditionalLibraryDirectories>$(SolutionDir)bin\$(Configuration)_$(Platform)\;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
217217
</Link>
218218
<PostBuildEvent>
219-
<Command>copy "$(TargetPath)" "C:\Program Files\Notepad++\plugins"</Command>
219+
<Command>if EXIST "C:\Program Files\Notepad++\plugins" (copy "$(TargetPath)" "C:\Program Files\Notepad++\plugins")</Command>
220220
</PostBuildEvent>
221221
</ItemDefinitionGroup>
222222
<ItemGroup>

0 commit comments

Comments
 (0)