The Ember web client for Travis CI
![]() V3 API doesn't return any of the records more than 2 times. If a record is already included in the response any other occurences will be represented as a reference, ie. a hash with just an @href. Ember Data doesn't play nice with such references as it needs an id to identify a record. The code in this commit traverses payloads from V3 API and adds an id to each of the references that are present. For example a following payload: { "@href": "/build/1", "@type": "build" "id": 1, "state": "passed", "branch": { "@href": "/repo/1/branch/master", "name": "master", "lastBuild": { "@href": "/build/1" } } } Will be changed to: { "@href": "/build/1", "@type": "build" "id": 1, "state": "passed", "branch": { "@href": "/repo/1/branch/master", "name": "master", "lastBuild": { "@href": "/build/1", "id": 1 } } } In this case an "id" field was added to "branch.lastBuild" field. |
||
---|---|---|
app | ||
ci | ||
config | ||
public | ||
ssl | ||
tests | ||
vendor | ||
waiter | ||
.bowerrc | ||
.buildpacks | ||
.editorconfig | ||
.ember-cli | ||
.gitignore | ||
.jshintrc | ||
.rspec | ||
.ruby-version | ||
.slugignore | ||
.travis.yml | ||
.watchmanconfig | ||
bower.json | ||
CONTRIBUTING.md | ||
ember-cli-build.js | ||
Gemfile | ||
Gemfile.lock | ||
LICENSE | ||
NOTES.txt | ||
package.json | ||
Procfile | ||
README.md | ||
remove-log-popup.coffee | ||
run_qunit.js | ||
SSL_LOCALLY.md | ||
testem.json |
Travis CI ember web client
Running the app
The app is developed using Ember CLI. It requires nodejs with npm installed.
In order to run the app you need to install dependencies with:
bower install
npm install
Now you can run the server:
ember serve
And open http://localhost:4200 in the browser.
Running tests
To run a test suite execute:
ember test
You can also start an interactive test runner for easier development:
ember test --serve