The Ember web client for Travis CI
![]() In order to minimize ajax requests, I implemented isComplete property, which can be used to check if record is fetched from the API or if it was just partially loaded (for example by pusher event). This is nice in terms of requests reduction, but caries risk of showing incomplete data. This commit fixes this situation by saving which attributes were provided on "incomplete" load and triggering refresh when any unknown attribute is tried to be fetched. The implementation is really simple and will probably need refactoring, but I would like to test it in the wild before putting much more time into it. |
||
---|---|---|
assets | ||
config | ||
lib | ||
play | ||
public | ||
spec/lib | ||
.gitignore | ||
.slugignore | ||
.travis.yml | ||
AssetFile | ||
config.ru | ||
dev.env | ||
Gemfile | ||
Gemfile.lock | ||
Guardfile | ||
Guardfile.phantom | ||
LICENCSE | ||
NOTES.txt | ||
Procfile | ||
Rakefile | ||
README.md | ||
run_jasmine.coffee | ||
run_mocha.js | ||
seeds.sql | ||
travis-web.gemspec |
Travis CI ember web client
Running the app
This is a static html/js app so you shouldn't need to install anything.
git clone git://github.com/svenfuchs/travis-ember.git
cd travis-ember
open public/index.html
Running locally with a local API server:
RUN_API=1 bundle exec rackup -p 3000
Running against existing API endpoint:
API_ENDPOINT="https://api.travis-ci.org/" RUN_API=0 bundle exec rackup
Run locally, one on ci.dev
and one on api.dev
:
. dev.env
bundle exec rackup
Compiling assets manually
bundle exec rakep
ENV=production bundle exec rakep
Compiling assets on change
bundle exec guard