-
Notifications
You must be signed in to change notification settings - Fork 12k
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
fix: removed travis-specific configuration from karma.conf.js #1815
fix: removed travis-specific configuration from karma.conf.js #1815
Conversation
Try removing this bit as well in
|
I've updated it, moved the logic out to travis.yml - let's see if CI passes. |
@@ -33,15 +33,6 @@ describe('Basic end-to-end Workflow', function () { | |||
|
|||
after(conf.restore); | |||
|
|||
var testArgs = ['test', '--watch', 'false']; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line still needs to stay though. CI fails because it's missing, and it's what makes unit tests run in single run mode.
ffbec3e
to
4df3a66
Compare
Rerunning OSX Node 5, travis is having problems with their OSX VMs. |
It's weird, it still fails on OSX, but looks like karma's chrome exits normally. Do you think it is caused by the PR, or is it just the OSX image? |
The OSX VM are all timing out. https://www.traviscistatus.com/ says all builds are stopped. Please rebase on top of master, I'll wait for linux and linting to pass and merge this. Thanks! |
e25cbf6
to
6bb0254
Compare
@@ -34,9 +34,11 @@ before_install: | |||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi | |||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew tap caskroom/cask; fi | |||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew cask install google-chrome --force; fi | |||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then echo "--no-sandbox" > ~/.config/chrome-flags.conf; fi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After the rebase i've also added no sandbox to osx, maybe it fixes the issue.
6bb0254
to
fe5e786
Compare
…r not to favor any particular CI tool over others.
fe5e786
to
0c7fdb8
Compare
Rebased, and also edited the script in travis.yml, which adds |
It's in! Thanks so much for this @andyskw, I think I might use your technique the next time I setup travis on other repos. It's just really clean! |
I'm happy if it helped, thanks for the effort and for the merge! On the other hand, the generated ng2 projects still wont work with CI-s, since karma's autowatch is enabled there. Karma will be able to start (with the proper CI config in hand), but it will never stop running. If we could tell the karma config somehow dynamically, that the context is a CI environment, we could disable autowatch (or enable Do you think it worth the effort? If so, I'd be happy to give a PR, which waits for an environment variable ( With that one, the angular 2 app developer only has to add an export CONTEXT_CI=true in the .travis.yml/teamcity build config/jenkins blabla..., and it just works. What do you think? |
I suppose that would work, but you can also do |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
The pull request removes the travis-specific custom launcher from karma.conf.js as per discussed in #1738.
Hopefully there will be a follow-up PR, allowing the user to successfully run their karma test cases in their CI tools, without having to change the
karma.conf.js
generated by angular-cli, but it still needs some investigations and decisions to be made about the approach.