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

ci: test cross platform #1559

Merged

Conversation

ChristianMurphy
Copy link
Contributor

Test on Node.js 10 and 12, long term release support versions.
Test on Linux, Mac, and Windows machines.

@codesandbox-ci
Copy link

codesandbox-ci bot commented Sep 30, 2019

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 99fe42c:

Sandbox Source
wild-wind-hih9r Configuration

@tannerlinsley
Copy link
Collaborator

I'm not sure why this is failing. Can anyone tell?

@stramel
Copy link
Contributor

stramel commented Oct 4, 2019

@tannerlinsley Looks like is-ci-cli may have an issue with Windows?

@ChristianMurphy
Copy link
Contributor Author

As far as I can tell, is-ci-cli has an issue where it is unable to detect travis ci for windows as a CI environment.
I've logged this upstream as watson/is-ci#19

I could revert the windows part and keep the MacOS and Linux part for now to unblock this, if folks prefer.

@tannerlinsley
Copy link
Collaborator

tannerlinsley commented Oct 4, 2019 via email

@stramel
Copy link
Contributor

stramel commented Oct 4, 2019

I don't see how it wouldn't be detecting the TravisCI as a CI environment. is-ci-cli uses is-ci which uses ci-info of which everything seems correct. Including your PR passing on Windows for is-ci. If is-ci-cli was failing to detect the CI environment, it should fallback to running test:dev script.

I put out a PR on is-ci-cli to use cross-spawn and throw any errors that try to silently fail. Hopefully this will catch it. YellowKirby/is-ci-cli#5

In the meantime, @ChristianMurphy you could try pointing to my fork and branch to see if it fixes it.

@stramel
Copy link
Contributor

stramel commented Oct 9, 2019

@ChristianMurphy Can you try v2.0.0 of is-ci-cli?

Test on Node.js 10 and 12, long term release support versions.
Test on Linux, Mac, and Windows machines.
includes fixes to support windows
@ChristianMurphy
Copy link
Contributor Author

Thanks @stramel, updated to is-ci-cli version 2

@ChristianMurphy
Copy link
Contributor Author

Closing this in favor of #1578
The issue doesn't appear on GitHub actions CI workflow or in local testing.
I suspect the issue may with with Travis CI Windows beta issue.

@ChristianMurphy ChristianMurphy deleted the ci/test-cross-platform branch October 9, 2019 19:33
@stramel
Copy link
Contributor

stramel commented Oct 9, 2019

@ChristianMurphy You can fix the issue by adding this to the .travis.yml

env:
  global:
    - YARN_GPG=no

@ChristianMurphy ChristianMurphy restored the ci/test-cross-platform branch October 9, 2019 19:56
@stramel
Copy link
Contributor

stramel commented Oct 9, 2019

@ChristianMurphy I wrote out a travis file for the is-ci-cli lib. That's how I knew what worked :P https://github.com/YellowKirby/is-ci-cli/pull/6/files

https://travis-ci.org/stramel/is-ci-cli/builds/595780320

@stramel
Copy link
Contributor

stramel commented Oct 9, 2019

@ChristianMurphy You might want to try removing the quotes around the script. I think that is causing windows to fail.

Copy link
Contributor

@stramel stramel left a comment

Choose a reason for hiding this comment

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

Just wanted to note, that it's generally bad practice to have both package-lock.json and yarn.lock

@tannerlinsley
Copy link
Collaborator

I agree. I'm not even sure how the package-lock.json got in there TBH

@tannerlinsley tannerlinsley merged commit c7dfc45 into TanStack:master Oct 9, 2019
@ChristianMurphy ChristianMurphy deleted the ci/test-cross-platform branch October 9, 2019 21:13
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.

None yet

3 participants