Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Commit c62f08a

Browse files
gkalpakpetebacondarwin
authored andcommitted
chore(CI): fix "auto-update" Jenkins job
The job is currently failing, because the Node.js version used in not compatible with some of our dependencies (e.g. Protractor). The added `jenkins.sh` script is going to be executed by https://ci.angularjs.org/job/angular-phonecat%20auto-update/.
1 parent 65bbbfd commit c62f08a

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

scripts/private/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,14 @@ gh-pages branch on GitHub.
2727
git push origin gh-pages
2828
```
2929

30+
### Auto-updating Demo Pages from CI
31+
32+
There is a Jenkins job that runs periodically and executes `jenkins.sh`.
33+
34+
- **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`).
36+
(You shouldn't need to run this script manually.)
37+
3038
## Pushing to GitHub
3139

3240
Each step in the tutorial is one commit in the git repository. Each step is also identified by a git

scripts/private/jenkins.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/bash
2+
3+
# Install nvm for this shell
4+
source ~/.nvm/nvm.sh
5+
6+
# Use Node.js v4.x
7+
nvm install 4
8+
9+
# Run all tests
10+
test-all.sh
11+
12+
# Publish steps on gh-pages
13+
update-gh-pages.sh

0 commit comments

Comments
 (0)