The Ember web client for Travis CI
Go to file
Piotr Sarnacki d94816ec8f Remove unneeded code
This piece of code was used in order to load repos associated to jobs
when the latter were loaded from pusher. This was needed because jobs
events do not have repository record passed in pusher payload, so when
job was added with pusher and link to the job was displayed in "Running
Jobs" or in workers on right sidebar, Ember was loading missing repos.
We don't need this code anymore as there is no right sidebar.

Additionally after changes in Ember.js, it's possible to pass primitives
to linkTo. Previously the link to record needed to be constructed as
following:

    {{#linkTo "job" job.repo job}}Link to repo{{/linkTo}}

The drawback of such code is that repo would have been instantiated in
such case. Now, we can do something like this:

    {{#linkTo "job" job.repositorySlug job}}Link to repo{{/linkTo}}

so as long as we have information about repository slug in the job data,
such hacks are not be needed.
2013-08-05 13:14:58 +02:00
.localeapp Run rake localeapp:update 2013-03-12 14:02:48 +01:00
assets Remove unneeded code 2013-08-05 13:14:58 +02:00
config switch to puma, make app reload in development mode 2012-10-17 16:19:42 +02:00
lib Fix passing alt=default param 2013-03-05 21:08:14 +01:00
locales There's a capital H in GitHub. 2013-05-11 08:38:23 +02:00
play update log.js and adapt styles for fold name tags 2013-02-27 22:39:10 +01:00
public Change spec runner to qunit 2013-07-30 17:12:58 +02:00
script Change spec runner to qunit 2013-07-30 17:12:58 +02:00
spec Fix passing alt=default param 2013-03-05 21:08:14 +01:00
.buildpacks Change buildpacks 2012-10-30 02:20:58 +01:00
.gitignore Rework guide a whee bit to be more compact. 2013-06-13 20:47:21 +02:00
.rspec Add some color to rspec 2012-11-10 15:47:33 +01:00
.slugignore Don't ignore assets directory when building slug 2012-10-30 02:23:06 +01:00
.travis.yml Don't try to upload build to S3 for pull requests 2013-04-07 19:35:39 +02:00
Assetfile Change spec runner to qunit 2013-07-30 17:12:58 +02:00
config.ru simplify app creation and rename "custom_branch" to "alt" 2013-02-25 17:42:03 +01:00
CONTRIBUTING.md Added missing word "repo" 2013-03-18 23:05:06 -03:00
Gemfile Switch to http for now. 2013-05-17 08:15:44 +02:00
Gemfile.lock Add changes on Gemfile.lock 2013-05-21 15:00:18 +02:00
Guardfile make assetfile reusable 2012-10-03 16:34:21 +02:00
Guardfile.phantom add a guardfile for running specs 2012-07-05 00:47:05 +02:00
LICENCSE mit license 2012-10-03 13:38:40 +02:00
NOTES.txt Remove getPath/setPath from NOTES, it's already fixed 2012-08-12 13:42:43 +02:00
Procfile Revert "Fix procfile to rerun app when lib/**/* changes" 2013-02-21 22:22:22 +01:00
Rakefile Extracted localeapp-handlebars_i18n to gem 2012-12-04 00:17:58 +09:00
README.md correct typo in README 2013-04-17 19:30:16 -07:00
run_mocha.js try using jasmine for specs 2012-06-25 23:58:27 +02:00
run_qunit.js Change spec runner to qunit 2013-07-30 17:12:58 +02:00
seeds.sql add seeds gitignore config/travis.yml 2012-07-21 20:03:29 +02:00
travis-web.gemspec rename gemspec 2012-10-03 15:24:47 +02:00

Travis CI ember web client

Build Status

Running the app

In order to run the app you need to install dependencies with:

bundle install

Then you have to run the server, the easiest way to do this is to use foreman:

bundle exec foreman start

Now you can open localhost:5000

By default it uses the official API at https://api.travis-ci.org, but you can customize the API server URL using:

API_ENDPOINT="http://localhost:300/" bundle exec foreman start

This will run against API run locally.

Compiling assets manually

bundle exec rakep
ENV=production bundle exec rakep

Running the spec suite

First, start the app (see above).

bundle exec foreman start

To run the Ruby specs, run rspec against the spec/ directory:

bundle exec rspec spec/

To run the Jasmine specs, open the spec page: localhost:5000/spec.html

i18n

Localization for travis-web is managed via localeapp. If you are interested in improving the existing localizations or adding a new locale, please contact us on irc (#travis) and we will set you up.

Please do not edit the YAML files directly.

Localization data can be synced with the following rake task:

bundle exec localeapp:update

This will publish any new keys in en.yml, as well as any missing keys from your handlebars templates and pull down the latest localizations.

note: You will need to have the localeapp api key exported to LOCALEAPP_API_KEY