| OLD | NEW |
| 1 # INSTALLING NODE/NPM/BOWER | 1 # INSTALLING NODE/NPM/BOWER |
| 2 | 2 |
| 3 The version of npm in apt-get is too old for bower. | 3 The version of npm in apt-get is too old for bower. |
| 4 # Ensure ~/local/bin is on $PATH | 4 # Ensure ~/local/bin is on $PATH |
| 5 $ mkdir ~/local | 5 $ mkdir ~/local |
| 6 $ export PATH="$HOME/local/bin:$PATH" | 6 $ export PATH="$HOME/local/bin:$PATH" |
| 7 # Install Node | 7 # Install Node |
| 8 $ mkdir -p /tmp/node-install && cd /tmp/node-install | 8 $ mkdir -p /tmp/node-install && cd /tmp/node-install |
| 9 $ curl https://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-component
s=1 | 9 $ curl https://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-component
s=1 |
| 10 $ ./configure --prefix=${HOME}/local | 10 $ ./configure --prefix=${HOME}/local |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 You can shorten this command to 'karma start' if you run | 59 You can shorten this command to 'karma start' if you run |
| 60 'npm install -g karma-cli'. | 60 'npm install -g karma-cli'. |
| 61 | 61 |
| 62 To run a single test or test suite, change the test code to use describe.only | 62 To run a single test or test suite, change the test code to use describe.only |
| 63 or it.only as appropriate. You can use the chromium dev tools inside the | 63 or it.only as appropriate. You can use the chromium dev tools inside the |
| 64 Chrome instance that karma starts up in order to set breakpoints and otherwise | 64 Chrome instance that karma starts up in order to set breakpoints and otherwise |
| 65 debug. | 65 debug. |
| 66 | 66 |
| 67 # PUSHING | 67 # PUSHING |
| 68 | 68 |
| 69 0. cd appengine/chromium_cq_status: | 69 1. cd appengine/chromium_cq_status: |
| 70 1. (optional) reduce the size of the upload | |
| 71 $ rm -r third_party/catapult/tracing/third_party | |
| 72 $ rm -r third_party/catapult/tracing/tracing/test_data | |
| 73 2. make deploy | 70 2. make deploy |
| 74 3. Test the newly deployed version: visit | 71 3. Test the newly deployed version: visit |
| 75 http://<version>-dot-chromium-cq-status.appspot.com, make sure the | 72 http://<version>-dot-chromium-cq-status.appspot.com, make sure the |
| 76 relevant pages and endpoints load correctly. Check the logs for any errors. | 73 relevant pages and endpoints load correctly. Check the logs for any errors. |
| 77 4. Go to appengine.google.com and select the chromium-cq-status app. | 74 4. Go to appengine.google.com and select the chromium-cq-status app. |
| 78 5. Click on the version tab | 75 5. Click on the version tab |
| 79 6. Make the new version of both modules the default. | 76 6. Make the new version of both modules the default. |
| 80 7. Check again that the new default version continues to serve the traffic, | 77 7. Check again that the new default version continues to serve the traffic, |
| 81 and the logs look good. | 78 and the logs look good. |
| 82 | 79 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 94 'karma start --single-run' or 'make single-test'. | 91 'karma start --single-run' or 'make single-test'. |
| 95 | 92 |
| 96 mocha: testing framework. Provides good asynchronous and synchronous test | 93 mocha: testing framework. Provides good asynchronous and synchronous test |
| 97 support. Tests run serially, so exceptions are reported for the right | 94 support. Tests run serially, so exceptions are reported for the right |
| 98 test case. | 95 test case. |
| 99 | 96 |
| 100 chai: assertion library. | 97 chai: assertion library. |
| 101 | 98 |
| 102 catapult: Project containing Trace Viewer, used as the front-end for the | 99 catapult: Project containing Trace Viewer, used as the front-end for the |
| 103 timeline view. | 100 timeline view. |
| OLD | NEW |