Commit Graph

11 Commits

Author SHA1 Message Date
Jonas Jenwald
0874b49302 Use Node LTS releases to fix Travis CI builds (issue 10790)
Hopefully we don't need the *latest* Node.js releases for the unit-tests to work on Travis, and by using "long-term support" releases instead we should be able to avoid these types of sudden failures in the future as well.
2020-04-22 00:06:27 +02:00
Jonas Jenwald
78b1dad2a9 Don't let Travis run npm update during setup
Letting Travis update npm packages can lead to unexpected and completely unrelated failures for any PR and/or merge, see e.g. 11719, if there's ever backwards *incompatible* changes when a package is updated.

The *exact* package versions are specified in `package-lock.json`, and they should thus be used when running tests. Note that the bots won't update npm packages, and neither should Travis as far as I'm concerned.
2020-03-20 15:45:15 +01:00
Tim van der Meij
fa85f86298
Upgrade to Gulp 4
This required the following changes in the Gulpfile:

- Defining a series of tasks is no longer done with arrays, but with the
  `gulp.series` function. The `web` target is refactored to use a
  smaller number of tasks to prevent tasks from running multiple times.
- Getting all tasks must now be done through the task registry.
- Tasks that don't return anything must call `done` upon completion.

Moreover, this upgrade allows us to use the latest Node.js on Travis CI
again.
2018-12-17 16:20:13 +01:00
Tim van der Meij
0abddde2c7
Update packages
Webpack is pinned because versions higher than this cause the viewer not
to work (see https://github.com/mozilla/pdf.js/pull/10170#issuecomment-431697032).

Node.js is pinned for Travis CI because version 11 requires that we
update to Gulp 4.
2018-10-24 00:09:39 +02:00
Tim van der Meij
7c78b2f6c0 Travis CI: use most recent version of NPM 2016-10-27 21:10:19 +02:00
Tim van der Meij
7bbc2f079a Use the latest stable Node.js version on Travis CI and enable caching 2016-07-25 15:17:30 +02:00
Yury Delendik
9798e1007e Introducing gulp. 2016-03-04 09:36:46 -06:00
Jonas Jenwald
81e86c4e3d Update the Node.js version used by Travis, to prevent deprecation warnings in the output 2015-12-10 13:15:32 +01:00
Tim van der Meij
eb8ce9f8da Attempt to fix Travis 2014-07-31 15:14:08 +02:00
Michał Gołębiowski
ca842ed74f Switch to Node.js 0.10
Node.js 0.12 is soon going to be released and Node 0.8 might be
deprecated soon. It's best to stay on the current version.
2014-05-13 02:46:46 +02:00
Jon Buckley
442bd8bd5a Issue #2654 - Lint with Travis-CI 2013-02-01 12:01:04 -05:00