This repository was archived by the owner on Feb 26, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +7
-16
lines changed Expand file tree Collapse file tree 4 files changed +7
-16
lines changed Original file line number Diff line number Diff line change @@ -18,21 +18,15 @@ repository. The folder structure of this branch is different to the main master
18
18
copied to its own folder.
19
19
20
20
- ** update-gh-pages.sh** : Run this script to copy changes to the tutorial steps and bower
21
- dependencies over to the gh-pages branch.
22
-
23
- Once you have updated the local gh-pages branch you can review the changes and push to the remote
24
- gh-pages branch on GitHub.
25
-
26
- ```
27
- git push origin gh-pages
28
- ```
21
+ dependencies over to the gh-pages branch and (if all tests pass) push to the remote gh-pages
22
+ branch on GitHub.
29
23
30
24
### Auto-updating Demo Pages from CI
31
25
32
26
There is a Jenkins job that runs periodically and executes ` jenkins.sh ` .
33
27
34
28
- ** jenkins.sh** : This script will set the Node.js version to 4.x (using ` nvm ` ), will run all the
35
- tests (using ` test-all.sh ` ) and update the demo pages (using ` update-gh-pages.sh ` ).
29
+ the tests and update the demo pages (using ` update-gh-pages.sh ` ).
36
30
(You shouldn't need to run this script manually.)
37
31
38
32
## Pushing to GitHub
Original file line number Diff line number Diff line change @@ -6,8 +6,5 @@ source ~/.nvm/nvm.sh
6
6
# Use Node.js v4.x
7
7
nvm install 4
8
8
9
- # Run all tests
10
- scripts/private/test-all.sh
11
-
12
- # Publish steps on gh-pages
9
+ # Run all tests and publish steps on gh-pages
13
10
scripts/private/update-gh-pages.sh
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ BRANCH=$(git rev-parse --abbrev-ref HEAD)
18
18
npm install
19
19
20
20
# Ensure that the chromeDriver is installed
21
- npm run update-webdriver
21
+ node_modules/.bin/webdriver-manager update --gecko false --standalone false
22
22
23
23
# Start up the web server
24
24
node_modules/.bin/http-server ./app -a localhost -p 8000 -c-1 --silent &
Original file line number Diff line number Diff line change 6
6
#
7
7
# The tutorial step changes are computed by checking out each step into a snapshot folder and then
8
8
# overwriting the step folders in gh-pages with these new ones.
9
- # If there are any changes they will be committed
9
+ # If there are any changes they will be committed.
10
10
#
11
11
# The dependency changes are computed by running "bower update" then committing any changed files
12
12
# inside the bower_components folder onto the gh-pages branch.
13
13
#
14
- # You should review these commits and push them to origin/gh-pages if valid .
14
+ # Finally, the new commits are pushed to origin/gh-pages.
15
15
16
16
# Exit on error and print each command as it is run
17
17
set -ex
You can’t perform that action at this time.
0 commit comments