Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
T
Titanium-Web-Proxy
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Titanium-Web-Proxy
Commits
27ad1dc4
Commit
27ad1dc4
authored
Dec 25, 2015
by
titanium007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix appveyor building twice
parent
dfe1687d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
25 deletions
+7
-25
default.ps1
.build/default.ps1
+3
-25
appveyor.yml
appveyor.yml
+4
-0
No files found.
.build/default.ps1
View file @
27ad1dc4
...
...
@@ -38,17 +38,17 @@ Task Build -depends Restore-Packages {
exec
{
.
$MSBuild
$SolutionFile
/t:Build /v:normal /p:Configuration
=
$Configuration
-Net45
}
}
Task Package -depends
Update-AssemblyInfoFiles,
Build
{
Task Package -depends Build
{
exec
{
.
$NuGet
pack
"
$SolutionRoot
\Titanium.Web.Proxy\Titanium.Web.Proxy.nuspec"
-Properties
Configuration
=
$Configuration
-OutputDirectory
"
$SolutionRoot
"
-Version
"
$Version
"
}
}
Task Clean
{
Task Clean
-depends Install-BuildTools
{
Remove-Item
-Path
"
$SolutionRoot
\packages\*"
-Exclude repositories.config -Recurse -Force
Get-ChildItem
.\ -include bin,obj -Recurse |
foreach
(
$_
)
{
Remove-Item
$_
.fullname -Force -Recurse
}
exec
{
.
$MSBuild
$SolutionFile
/t:Clean /v:quiet
}
}
Task Restore-Packages
-depends Install-BuildTools
{
Task Restore-Packages
{
exec
{
.
$NuGet
restore
$SolutionFile
}
}
...
...
@@ -60,25 +60,3 @@ Task Install-MSBuild {
}
Task Install-BuildTools -depends Install-MSBuild
# Borrowed from Luis Rocha's Blog (http://www.luisrocha.net/2009/11/setting-assembly-version-with-windows.html)
Task Update-AssemblyInfoFiles
{
$assemblyVersionPattern
=
'AssemblyVersion\("[0-9]+(\.([0-9]+|\*)){1,3}"\)'
$fileVersionPattern
=
'AssemblyFileVersion\("[0-9]+(\.([0-9]+|\*)){1,3}"\)'
$fileCommitPattern
=
'AssemblyInformationalVersion\("(.*?)"\)'
$assemblyVersion
=
'AssemblyVersion("'
+
$Version
+
'")'
;
$fileVersion
=
'AssemblyFileVersion("'
+
$Version
+
'")'
;
$commitVersion
=
'AssemblyInformationalVersion("'
+
$InformationalVersion
+
'")'
;
Get-ChildItem
-path
$SolutionRoot
-r -filter AssemblyInfo.cs |
ForEach
-Object
{
$filename
=
$_
.Directory.ToString
()
+
'\'
+
$_
.Name
$filename
+
' -> '
+
$Version
(
Get-Content
$filename
)
|
ForEach
-Object
{
%
{
$_
-replace
$assemblyVersionPattern
,
$assemblyVersion
}
|
%
{
$_
-replace
$fileVersionPattern
,
$fileVersion
}
|
%
{
$_
-replace
$fileCommitPattern
,
$commitVersion
}
}
|
Set-Content
$filename
}
}
\ No newline at end of file
appveyor.yml
View file @
27ad1dc4
...
...
@@ -35,6 +35,10 @@ assembly_info:
# to disable automatic tests
test
:
off
# skip building commits that add tags (such as release tag)
skip_tags
:
true
#---------------------------------#
# artifacts configuration #
#---------------------------------#
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment