![]() 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. |
||
---|---|---|
.localeapp | ||
assets | ||
config | ||
lib | ||
locales | ||
play | ||
public | ||
script | ||
spec | ||
.buildpacks | ||
.gitignore | ||
.rspec | ||
.slugignore | ||
.travis.yml | ||
Assetfile | ||
config.ru | ||
CONTRIBUTING.md | ||
Gemfile | ||
Gemfile.lock | ||
Guardfile | ||
Guardfile.phantom | ||
LICENCSE | ||
NOTES.txt | ||
Procfile | ||
Rakefile | ||
README.md | ||
run_mocha.js | ||
run_qunit.js | ||
seeds.sql | ||
travis-web.gemspec |
Travis CI ember web client
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