Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrates the build from Rake to grunt #16

Merged
merged 11 commits into from
Oct 9, 2014

Conversation

ryanackley
Copy link
Contributor

Note: I originally set out to encrypt our credentials for Sauce in this repo and the viewer repo but it was causing me problems so I dropped it. I don't think anyone would be too motivated to use the credentials since we only have the free plan available to anyone. If it becomes a problem later we can invalidate the access key and look at encrypting it then.

// start these browsers
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
//browsers: ['Chrome'],
browsers: ['Chrome'],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would recommend switching this to PhantomJS instead as not all build machines have Chrome installed (Travis comes to mind).

Edit: just noticed the karma file for travis... in that case, why bother with the two of them?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vilmosioo Thanks for the recommendation. For mysterious reasons, some tests consistently fail only on PhantomJS. Therefore, as a team we decided not to use PhantomJS to run the tests.

The travis CI build uses https://saucelabs.com to run the unit tests in a browser since we don't want to use PhantomJS. We want to limit the use of sauce to our CI builds since we are on a free plan and have limited access. Therefore, there is a local config for running the build locally using your installed version of Chrome.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

" For mysterious reasons, some tests consistently fail only on PhantomJS. Therefore, as a team we decided not to use PhantomJS to run the tests." Oddly enough, that sounds very familiar to me.

The decision makes sense. Just a quick suggestion though. Have you considered using only one karma file and override some settings from Gruntfile? It would avoid redundancy.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, the browser config is less straightforward for using sauce and I didn't want to spend a lot of time trying to make it work. If you're interested in doing this. I would be happy to accept a pull request (after this one is merged)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As a big fan of grunt, would be happy to do it!

@vilmosioo
Copy link
Contributor

I would like to see this 👍

@jccr
Copy link
Member

jccr commented Oct 9, 2014

Thanks for putting this together, Ryan.

jccr added a commit that referenced this pull request Oct 9, 2014
Migrates the build from Rake to grunt
@jccr jccr merged commit 95502e9 into readium:develop Oct 9, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants