Skip to content

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

Closed
wants to merge 9 commits into from
Closed

Travis builds for d3v4 and d3v5 #1430

wants to merge 9 commits into from

Conversation

kum-deepak
Copy link
Collaborator

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.

@kum-deepak
Copy link
Collaborator Author

@gordonwoodhull when you do a commit, it should run Sauce lab tests for both versions. Let us see if that works as expected.

@kum-deepak
Copy link
Collaborator Author

@gordonwoodhull ready for your review.

@gordonwoodhull
Copy link
Contributor

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 d3.version.split('.')[0]. But I don't know if there is an easy way to do this in the Gruntfile.

Any thoughts?

@kum-deepak
Copy link
Collaborator Author

There are two places we needed change:

  • The test case, I do like the idea of checking the d3 version and activate one of the version of the tests.
  • In Gruntfile we can setup a variable based on d3 version.

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.

@kum-deepak
Copy link
Collaborator Author

Take 2 ready

@gordonwoodhull
Copy link
Contributor

Nice use of a library for the version comparison.

Thanks @kum-deepak, merging for 3.0.1!

@kum-deepak
Copy link
Collaborator Author

kum-deepak commented May 3, 2018

You can consider merging it to develop branch. That way all new PRs targeting develop would get tested in both versions of D3.

@gordonwoodhull
Copy link
Contributor

gordonwoodhull commented May 3, 2018

It's merged to develop already. All releases normally go through develop.

@kum-deepak kum-deepak deleted the infra branch May 21, 2018 04:44
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.

2 participants