-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Travis builds for d3v4 and d3v5 #1430
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
Conversation
@gordonwoodhull when you do a commit, it should run Sauce lab tests for both versions. Let us see if that works as expected. |
@gordonwoodhull ready for your review. |
I agree, it's good to verify compatibility with both D3v4 and D3v5. I'm surprised that we don't use d3-request or d3-fetch anywhere in the specs, which would make this more difficult. My first thought looking at this was "can't we detect the version of d3 from JavaScript rather than modifying files?" It's easy to do in the Jasmine tests - just look at Any thoughts? |
There are two places we needed change:
At that stage we will not need this file, as we would only need to install d3 v4 which can be in .travis file directly. Let me get cracking. |
Take 2 ready |
Nice use of a library for the version comparison. Thanks @kum-deepak, merging for 3.0.1! |
You can consider merging it to |
It's merged to develop already. All releases normally go through develop. |
I have updated Travis so that on every push it starts two jobs in parallel, one for d3v4 and another for d3v5.
A test case in color-spec is patched so that it succeeds for d3v4 as well.