-
Notifications
You must be signed in to change notification settings - Fork 12k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(deploy): clean up gh-pages obsolete files (#3081)
Prevents the gh-pages branch from growing indefinitely by cleaning up before copying new files. Fixes #3081
- Loading branch information
1 parent
f6f24e7
commit 9fb8863
Showing
2 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -66,6 +66,8 @@ describe('Acceptance: ng github-pages:deploy', function() { | |
.addExecSuccess('git rev-parse --abbrev-ref HEAD', initialBranch) | ||
.addExecSuccess('git remote -v', remote) | ||
.addExecSuccess(`git checkout ${ghPagesBranch}`) | ||
.addExecSuccess('git ls-files') | ||
.addExecSuccess('git rm -r ') | ||
.addExecSuccess('git add .') | ||
.addExecSuccess(`git commit -m "${message}"`) | ||
.addExecSuccess(`git checkout ${initialBranch}`) | ||
|
@@ -83,6 +85,8 @@ describe('Acceptance: ng github-pages:deploy', function() { | |
.addExecSuccess('git rev-parse --abbrev-ref HEAD', initialBranch) | ||
.addExecSuccess('git remote -v', remote) | ||
.addExecSuccess(`git checkout ${ghPagesBranch}`) | ||
.addExecSuccess('git ls-files') | ||
.addExecSuccess('git rm -r ') | ||
.addExecSuccess('git add .') | ||
.addExecSuccess(`git commit -m "${message}"`) | ||
.addExecSuccess(`git checkout ${initialBranch}`) | ||
|
@@ -102,6 +106,8 @@ describe('Acceptance: ng github-pages:deploy', function() { | |
.addExecSuccess('git add .gitignore') | ||
.addExecSuccess('git clean -f -d') | ||
.addExecSuccess(`git commit -m \"initial ${ghPagesBranch} commit\"`) | ||
.addExecSuccess('git ls-files') | ||
.addExecSuccess('git rm -r ') | ||
.addExecSuccess('git add .') | ||
.addExecSuccess(`git commit -m "${message}"`) | ||
.addExecSuccess(`git checkout ${initialBranch}`) | ||
|
@@ -122,6 +128,8 @@ describe('Acceptance: ng github-pages:deploy', function() { | |
.addExecSuccess(`git remote add origin [email protected]:${username}/${project}.git`) | ||
.addExecSuccess(`git push -u origin ${initialBranch}`) | ||
.addExecSuccess(`git checkout ${ghPagesBranch}`) | ||
.addExecSuccess('git ls-files') | ||
.addExecSuccess('git rm -r ') | ||
.addExecSuccess('git add .') | ||
.addExecSuccess(`git commit -m "${message}"`) | ||
.addExecSuccess(`git checkout ${initialBranch}`) | ||
|
@@ -220,6 +228,8 @@ describe('Acceptance: ng github-pages:deploy', function() { | |
.addExecSuccess('git rev-parse --abbrev-ref HEAD', initialBranch) | ||
.addExecSuccess('git remote -v', remote) | ||
.addExecSuccess(`git checkout ${ghPagesBranch}`) | ||
.addExecSuccess('git ls-files') | ||
.addExecSuccess('git rm -r ') | ||
.addExecSuccess('git add .') | ||
.addExecSuccess(`git commit -m "${message}"`) | ||
.addExecError(`git checkout ${initialBranch}`, 'error: cannot stat \'src/client\': Permission denied'); | ||
|