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
879445bf
Commit
879445bf
authored
Aug 30, 2018
by
buildbot121
Committed by
justcoding121
Sep 07, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
set repo root
parent
75a10f90
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
build.ps1
.build/build.ps1
+6
-4
No files found.
.build/build.ps1
View file @
879445bf
...
...
@@ -2,7 +2,8 @@ $PSake.use_exit_on_error = $true
$Here
=
"
$(
Split-Path
-parent
$MyInvocation
.MyCommand.Definition
)
"
$SolutionRoot
=
"
$(
Split-Path
-parent
$Here
)
\src"
$RepoRoot
=
$(
Split-Path
-parent
$Here
)
$SolutionRoot
=
"
$RepoRoot
\src"
$ProjectName
=
"Titanium.Web.Proxy"
$GitHubProjectName
=
"Titanium-Web-Proxy"
...
...
@@ -65,12 +66,13 @@ Task Document -depends Build {
if
(
$Branch
-eq
"master"
)
{
#use docfx to generate API documentation from source metadata
docfx docfx.json
#patch index.json so that it is always sorted
#otherwise git will think file was changed
$IndexJsonFile
=
"
$
Solution
Root
\docs\index.json"
$IndexJsonFile
=
"
$
Repo
Root
\docs\index.json"
$unsorted
=
Get-Content
$IndexJsonFile
|
Out-String
[
Reflection.Assembly]::LoadFile
(
"
$Here
\lib\Newtonsoft.Json.dll"
)
[
System.Reflection.Assembly]::LoadWithPartialName
(
"System"
)
...
...
@@ -79,7 +81,7 @@ Task Document -depends Build {
Set-Content
-Path
$IndexJsonFile
-Value
$obj
#setup clone directory
$TEMP_REPO_DIR
=(
Split-Path
-parent
$
Solution
Root
)
+
"\temp-repo-clone"
$TEMP_REPO_DIR
=(
Split-Path
-parent
$
Repo
Root
)
+
"\temp-repo-clone"
If
(
test-path
$TEMP_REPO_DIR
)
{
...
...
@@ -101,7 +103,7 @@ Task Document -depends Build {
cd
"
$TEMP_REPO_DIR
\docs"
#copy docs to clone directory\docs
Copy-Item
-Path
"
$
Solution
Root
\docs\*"
-Destination
"
$TEMP_REPO_DIR
\docs"
-Recurse -Force
Copy-Item
-Path
"
$
Repo
Root
\docs\*"
-Destination
"
$TEMP_REPO_DIR
\docs"
-Recurse -Force
#push changes to master
git config --global credential.helper store
...
...
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