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

Fix failing builds on Travis #233

Merged
merged 3 commits into from
May 17, 2021
Merged

Conversation

lfdebrux
Copy link
Member

@lfdebrux lfdebrux commented May 14, 2021

Fixes #230.

This PR changes the Travis configuration to make sure it is using the same version of JavaScript as developers, and also changes the gemspec of govuk_tech_docs so that the newest version of autoprefixer-rails is used.

Together these changes allow the Travis builds to work correctly. Bumping autoprefixer-rails is not enough, because otherwise Travis will use Node.js v8.12.0 and autoprefixer will complain that the version of Node is too old.

@lfdebrux lfdebrux mentioned this pull request May 14, 2021
This has the effect of _downgrading_ middleman-autoprefixer to 2.10.0,
which uses a more optimistic version specification for
autoprefixer-rails [[1]]. Fortunately, we don't lose much by
downgrading, the only changes in the patch fix is to improve error
handling in the case where execJS complains that an old version of
Node.JS is being used; we can probably live without this.

[1]: middleman/middleman-autoprefixer@2d2b849
[2]: middleman/middleman-autoprefixer@v2.10.0...v2.10.1
@lfdebrux lfdebrux force-pushed the ldeb-force-bump-autoprefixer-rails branch 5 times, most recently from 9eb4d25 to 55f4a12 Compare May 14, 2021 14:47
@lfdebrux lfdebrux changed the title Force bump autoprefixer-rails to 10.2.5.0 Fix failing builds on Travis May 14, 2021
Travis CI is currently defaulting to using Node.js v8.x.x because the
Travis config file does not specify to use Node at all.

This commit uses nvm to make sure that the version of Node used for
tests is the same as used for development.
Node.js 10.16.0 was released in April 2019, everyone should be using a
newer version than that in production, so there is no need to be using
it for development or testing.

This commit changes the .nvmrc so it no longer specifies a specific
minor or patch version of Node.js, just a specific major version. This
has the advantages for developers who can keep their local versions of
Node up to date without having to edit this file, and for Travis CI
which can use a cached version for quicker testing.
@lfdebrux lfdebrux force-pushed the ldeb-force-bump-autoprefixer-rails branch from 55f4a12 to 2235787 Compare May 14, 2021 14:57
@lfdebrux lfdebrux marked this pull request as ready for review May 14, 2021 15:00
Copy link
Contributor

@kr8n3r kr8n3r left a comment

Choose a reason for hiding this comment

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

:shipit:

@lfdebrux lfdebrux merged commit f8cd125 into master May 17, 2021
@lfdebrux lfdebrux deleted the ldeb-force-bump-autoprefixer-rails branch May 17, 2021 08:02
@kr8n3r kr8n3r mentioned this pull request May 17, 2021
3 tasks
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.

Failing builds
2 participants