appveyor: remove version prefix from artifacts
authorRicardo Constantino <wiiaboo@gmail.com>
Sun, 22 Jan 2017 20:44:35 +0000 (20:44 +0000)
committerMark Harris <mark.hsj@gmail.com>
Sun, 22 Jan 2017 21:00:33 +0000 (13:00 -0800)
Also appveyor.yml configuration file is moved to .appveyor.yml.

Closes https://github.com/xiph/opus-tools/pull/14
Signed-off-by: Mark Harris <mark.hsj@gmail.com>
.appveyor.yml [new file with mode: 0644]
appveyor.yml [deleted file]

diff --git a/.appveyor.yml b/.appveyor.yml
new file mode 100644 (file)
index 0000000..2b27b65
--- /dev/null
@@ -0,0 +1,28 @@
+image: Visual Studio 2015
+configuration:
+- Debug
+- Release
+
+platform:
+- Win32
+- x64
+
+install:
+- cd %APPVEYOR_BUILD_FOLDER%
+- git clone -q https://github.com/xiph/opus.git ..\opus
+- git clone -q https://github.com/xiph/ogg.git ..\ogg
+- msbuild "..\opus\win32\VS2015\opus.vcxproj" /m /v:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" /p:Configuration=%CONFIGURATION%;Platform=%PLATFORM%
+- msbuild "..\ogg\win32\VS2015\libogg_static.sln" /m /v:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" /property:Configuration=%CONFIGURATION%;Platform=%PLATFORM%
+
+build:
+  project: win32\VS2015\opus-tools.sln
+  parallel: true
+  verbosity: minimal
+
+after_build:
+- cd %APPVEYOR_BUILD_FOLDER%
+- git describe --tags --match "v*" --dirty>_git_tag.tmp
+- set /p version=<_git_tag.tmp
+- set version=%version:~1%
+- 7z a opus-tools-%version%.zip .\win32\VS2015\%PLATFORM%\%CONFIGURATION%\*.exe
+- appveyor PushArtifact opus-tools-%version%.zip
diff --git a/appveyor.yml b/appveyor.yml
deleted file mode 100644 (file)
index a6c4e38..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-image: Visual Studio 2015
-configuration:
-- Debug
-- Release
-
-platform:
-- Win32
-- x64
-
-install:
-- git clone -q https://github.com/xiph/opus.git %APPVEYOR_BUILD_FOLDER%\..\opus
-- git clone -q https://github.com/xiph/ogg.git %APPVEYOR_BUILD_FOLDER%\..\ogg
-- msbuild "%APPVEYOR_BUILD_FOLDER%\..\opus\win32\VS2015\opus.vcxproj" /m /v:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" /p:Configuration=%CONFIGURATION%;Platform=%PLATFORM%
-- msbuild "%APPVEYOR_BUILD_FOLDER%\..\ogg\win32\VS2015\libogg_static.sln" /m /v:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" /property:Configuration=%CONFIGURATION%;Platform=%PLATFORM%
-
-build:
-  project: win32\VS2015\opus-tools.sln
-  parallel: true
-  verbosity: minimal
-
-after_build:
-- git describe --tags --match "v*" --always > _git_tag.tmp
-- set /p version=<_git_tag.tmp
-- 7z a opus-tools-%version%.zip %APPVEYOR_BUILD_FOLDER%\win32\VS2015\%PLATFORM%\%CONFIGURATION%\*.exe
-- appveyor PushArtifact opus-tools-%version%.zip