Giter Club home page Giter Club logo

travis-assets's Introduction

travis-assets

Serves two purposes:

  • serve assets on http://assets.travis-ci.org in production
  • act as a Rails engine in development mode so that assets are directly served from the travis-ci Rails app

Modifying assets in development

When you're working on travis-ci locally and want to see your asset modifications immediately on your locally running version, in your local travis-ci's Gemfile change the reference of travis-assets from git to your local checkout, like so:

#gem 'travis-assets',  git: 'https://github.com/travis-ci/travis-assets', require: 'travis/assets/railtie'
gem 'travis-assets', path: '../travis-assets', require: 'travis/assets/railtie'

Re-bundle travis-ci and in travis-assets, run bundle exec guard. This will recompile your assets whenever you modify something, and your running instance of travis-ci should pick them up automatically.

Running the tests

Integration tests are implemented using Jasmine and can be run in the browser.

To run the whole test suite, simply do:

$ bundle install # Only needed on the first run
$ bundle exec rake jasmine:ci

travis-assets's People

Contributors

aaron1011 avatar alejandro avatar colszowka avatar joshk avatar juice10 avatar michaelklishin avatar mortonfox avatar nightgunner5 avatar parndt avatar rkh avatar roidrage avatar sarahhodne avatar seldaek avatar sethvargo avatar svenfuchs avatar waseem avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

travis-assets's Issues

replace ember.js with ember-rails gem

I've forked the repo and am attempting to replace the vendor/ember.js with the ember-rails gem. The branch is a work in progress but I've run into issues with the application.js.

//= require ember

The travis-ci asset-host branch returns a "Sprockets::FileNotFound in Home#index couldn't find file 'ember'".

Any help or insight would greatly be appreciated.

https://github.com/ttdonovan/travis-assets/compare/ember-rails-gem

Note Ember.js 0.9.6 has a XSS vulnerability and 0.9.7 has a fix.

emberjs/ember.js@255bd70

Error while parsing es.yml locales file

Got an error under ruby 2.0.0-p247:

/Users/sandric/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/psych.rb:205:in `parse': (/Users/sandric/.rvm/gems/ruby-2.0.0-p247@travis/bundler/gems/travis-assets-6b9151dd386f/config/locales/es.yml): found unknown escape character while parsing a quoted scalar at line 102 column 23 (Psych::SyntaxError)
    from /Users/sandric/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/psych.rb:205:in `parse_stream'
    from /Users/sandric/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/psych.rb:153:in `parse'
    from /Users/sandric/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/psych.rb:129:in `load'
    from /Users/sandric/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/psych.rb:299:in `block in load_file'
    from /Users/sandric/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/psych.rb:299:in `open'
    from /Users/sandric/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/psych.rb:299:in `load_file'
    from /Users/sandric/.rvm/gems/ruby-2.0.0-p247@travis/gems/i18n-0.6.1/lib/i18n/backend/base.rb:172:in `load_yml'
    from /Users/sandric/.rvm/gems/ruby-2.0.0-p247@travis/gems/i18n-0.6.1/lib/i18n/backend/base.rb:157:in `load_file'
    from /Users/sandric/.rvm/gems/ruby-2.0.0-p247@travis/gems/i18n-0.6.1/lib/i18n/backend/base.rb:15:in `block in load_translations'
    from /Users/sandric/.rvm/gems/ruby-2.0.0-p247@travis/gems/i18n-0.6.1/lib/i18n/backend/base.rb:15:in `each'
    from /Users/sandric/.rvm/gems/ruby-2.0.0-p247@travis/gems/i18n-0.6.1/lib/i18n/backend/base.rb:15:in `load_translations'
    from /Users/sandric/.rvm/gems/ruby-2.0.0-p247@travis/gems/i18n-0.6.1/lib/i18n/backend/simple.rb:57:in `init_translations'
    from /Users/sandric/.rvm/gems/ruby-2.0.0-p247@travis/gems/i18n-0.6.1/lib/i18n/backend/simple.rb:71:in `lookup'
    from /Users/sandric/.rvm/gems/ruby-2.0.0-p247@travis/gems/i18n-0.6.1/lib/i18n/backend/base.rb:26:in `translate'
    from /Users/sandric/.rvm/gems/ruby-2.0.0-p247@travis/gems/i18n-0.6.1/lib/i18n.rb:156:in `block in translate'
    from /Users/sandric/.rvm/gems/ruby-2.0.0-p247@travis/gems/i18n-0.6.1/lib/i18n.rb:152:in `catch'
    from /Users/sandric/.rvm/gems/ruby-2.0.0-p247@travis/gems/i18n-0.6.1/lib/i18n.rb:152:in `translate'
    from /Users/sandric/.rvm/gems/ruby-2.0.0-p247@travis/gems/devise-2.0.5/lib/devise/rails.rb:99:in `block (2 levels) in <class:Engine>'
    from /Users/sandric/.rvm/gems/ruby-2.0.0-p247@travis/gems/activesupport-3.2.13/lib/active_support/lazy_load_hooks.rb:34:in `call'
    from /Users/sandric/.rvm/gems/ruby-2.0.0-p247@travis/gems/activesupport-3.2.13/lib/active_support/lazy_load_hooks.rb:34:in `execute_hook'
    from /Users/sandric/.rvm/gems/ruby-2.0.0-p247@travis/gems/activesupport-3.2.13/lib/active_support/lazy_load_hooks.rb:43:in `block in run_load_hooks'
    from /Users/sandric/.rvm/gems/ruby-2.0.0-p247@travis/gems/activesupport-3.2.13/lib/active_support/lazy_load_hooks.rb:42:in `each'
    from /Users/sandric/.rvm/gems/ruby-2.0.0-p247@travis/gems/activesupport-3.2.13/lib/active_support/lazy_load_hooks.rb:42:in `run_load_hooks'
    from /Users/sandric/.rvm/gems/ruby-2.0.0-p247@travis/gems/railties-3.2.13/lib/rails/application/finisher.rb:59:in `block in <module:Finisher>'
    from /Users/sandric/.rvm/gems/ruby-2.0.0-p247@travis/gems/railties-3.2.13/lib/rails/initializable.rb:30:in `instance_exec'
    from /Users/sandric/.rvm/gems/ruby-2.0.0-p247@travis/gems/railties-3.2.13/lib/rails/initializable.rb:30:in `run'
    from /Users/sandric/.rvm/gems/ruby-2.0.0-p247@travis/gems/railties-3.2.13/lib/rails/initializable.rb:55:in `block in run_initializers'
    from /Users/sandric/.rvm/gems/ruby-2.0.0-p247@travis/gems/railties-3.2.13/lib/rails/initializable.rb:54:in `each'
    from /Users/sandric/.rvm/gems/ruby-2.0.0-p247@travis/gems/railties-3.2.13/lib/rails/initializable.rb:54:in `run_initializers'
    from /Users/sandric/.rvm/gems/ruby-2.0.0-p247@travis/gems/railties-3.2.13/lib/rails/application.rb:136:in `initialize!'
    from /Users/sandric/.rvm/gems/ruby-2.0.0-p247@travis/gems/railties-3.2.13/lib/rails/railtie/configurable.rb:30:in `method_missing'
    from /Users/sandric/travis-ci/config/environment.rb:5:in `<top (required)>'
    from /Users/sandric/.rvm/gems/ruby-2.0.0-p247@travis/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
    from /Users/sandric/.rvm/gems/ruby-2.0.0-p247@travis/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `block in require'
    from /Users/sandric/.rvm/gems/ruby-2.0.0-p247@travis/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in `load_dependency'
    from /Users/sandric/.rvm/gems/ruby-2.0.0-p247@travis/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
    from /Users/sandric/travis-ci/config.ru:3:in `block in <main>'
    from /Users/sandric/.rvm/gems/ruby-2.0.0-p247@travis/gems/rack-1.4.5/lib/rack/builder.rb:51:in `instance_eval'
    from /Users/sandric/.rvm/gems/ruby-2.0.0-p247@travis/gems/rack-1.4.5/lib/rack/builder.rb:51:in `initialize'
    from /Users/sandric/travis-ci/config.ru:in `new'
    from /Users/sandric/travis-ci/config.ru:in `<main>'
    from /Users/sandric/.rvm/gems/ruby-2.0.0-p247@travis/gems/rack-1.4.5/lib/rack/builder.rb:40:in `eval'
    from /Users/sandric/.rvm/gems/ruby-2.0.0-p247@travis/gems/rack-1.4.5/lib/rack/builder.rb:40:in `parse_file'
    from /Users/sandric/.rvm/gems/ruby-2.0.0-p247@travis/gems/rack-1.4.5/lib/rack/server.rb:200:in `app'
    from /Users/sandric/.rvm/gems/ruby-2.0.0-p247@travis/gems/railties-3.2.13/lib/rails/commands/server.rb:46:in `app'
    from /Users/sandric/.rvm/gems/ruby-2.0.0-p247@travis/gems/rack-1.4.5/lib/rack/server.rb:304:in `wrapped_app'
    from /Users/sandric/.rvm/gems/ruby-2.0.0-p247@travis/gems/rack-1.4.5/lib/rack/server.rb:254:in `start'
    from /Users/sandric/.rvm/gems/ruby-2.0.0-p247@travis/gems/railties-3.2.13/lib/rails/commands/server.rb:70:in `start'
    from /Users/sandric/.rvm/gems/ruby-2.0.0-p247@travis/gems/railties-3.2.13/lib/rails/commands.rb:55:in `block in <top (required)>'
    from /Users/sandric/.rvm/gems/ruby-2.0.0-p247@travis/gems/railties-3.2.13/lib/rails/commands.rb:50:in `tap'
    from /Users/sandric/.rvm/gems/ruby-2.0.0-p247@travis/gems/railties-3.2.13/lib/rails/commands.rb:50:in `<top (required)>'
    from script/rails:6:in `require'
    from script/rails:6:in `<main>'

I know, there is 1.9.3 ruby set in gemfile, but I think this can be fixed for 2.0..

Github API v2 is deprecated.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.