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

Update .travis.yml #101

Merged
merged 3 commits into from
Jun 17, 2018
Merged

Update .travis.yml #101

merged 3 commits into from
Jun 17, 2018

Conversation

Hermanya
Copy link
Contributor

@Hermanya Hermanya commented Feb 3, 2018

The build is failing because travis fails to build yoga-layout from react-sketchapp, which is a dependency of this project.
The way react-sketchapp builds is they do it osx.

The build is failing because travis fails to build yoga-layout from react-sketchapp, which is a dependency of this project.
The way react-sketchapp builds is they do it osx.
@Hermanya
Copy link
Contributor Author

Hermanya commented Feb 3, 2018

Almost there. This failure is related to a "comma-dangle" in my other pull request.

Hermanya added a commit to Hermanya/react-primitives that referenced this pull request Feb 3, 2018
This will hopefully fix the build in lelandrichardson#101
@Hermanya Hermanya mentioned this pull request Feb 3, 2018
.travis.yml Outdated
before_script:
- 'sh -e /etc/init.d/xvfb start'
#before_script:
# - 'sh -e /etc/init.d/xvfb start'
Copy link
Collaborator

Choose a reason for hiding this comment

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

what was this doing?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Truth be told it's the first time I see this.
http://semicomplete.com/blog/geekery/xvfb-firefox.html shows how to use it to create screenshots.
But I don't see where jest is actually using it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

0327145#diff-354f30a63fb0907d4ad57269548329e3 Introduced happo, which is for in browser testing.
Then later travis script switched to jest and linting, but happo was not cleaned up.

# https://github.com/SeleniumHQ/selenium/issues/2559
firefox: "47.0.1"
before_script:
- 'sh -e /etc/init.d/xvfb start'
Copy link

Choose a reason for hiding this comment

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

Removing happo will kill visual diffs.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

visual diffs were not running on travis since 678703e

Copy link
Collaborator

@mathieudutour mathieudutour Feb 3, 2018

Choose a reason for hiding this comment

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

I don't think happo was run on the CI 🤔

Copy link
Collaborator

Choose a reason for hiding this comment

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

what happens if we change the travis script to npm run --silent test && npm run --silent lint && npm run --silent happo (and keep the firefox and xvfb)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

react-sketchapp used to fail on ubuntu, which is why i switched it to osx. Xvfb is not available on osx travis-ci/travis-ci#7277

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@mathieudutour what about the build status?
Visual diffs with happo have been disabled for a while. I assume because they are broken. React sketchapp does not build on linux. The happo script does not work on osx.
I think in the interest of the value provided by the successfulness of build status, react primitives should give up the idea of visual diffs for now. And bring it back in a more cross platform way.

@mathieudutour mathieudutour merged commit c06df07 into lelandrichardson:master Jun 17, 2018
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