Commit Graph

185 Commits

Author SHA1 Message Date
Claudio Sanches 0fea7e8e58
Updated phpcs and phpunit composer.lock (#28096)
* Fix build on Travis
2020-10-28 16:31:43 -03:00
Rodrigo Primo 9355e632e8 Remove WP nightly from the list of Travis jobs that can fail
In #27977, we added the Travis build job that runs using WP nightly to
the list of jobs that can fail due to a problem in WP itself. Now this
problem was fixed, the build job is passing and we can remove it from
this list.
2020-10-21 09:03:43 -03:00
Claudio Sanches e5f0ce0723
Merge pull request #27999 from rodrigoprimo/update/remove-php-from-e2e-travis-job
Remove PHP 7.4 from the Travis job that runs E2E tests
2020-10-19 10:54:02 -03:00
Rodrigo Primo 2473bf3d7f Remove command to install jest from Travis
We don't need jest installed globally in the Travis build job that runs
the E2E as they are executed inside a Docker container.
2020-10-17 12:29:48 -03:00
Rodrigo Primo a7905e148a Remove xvfb from Travis configuration
Now that we are using Docker to run E2E tests, we don't need to start
xvfb anymore in the Travis build jobs.
2020-10-17 12:28:01 -03:00
Rodrigo Primo 7830562fc7 Remove PHP 7.4 from the Travis job that runs E2E tests
This should reduce in about ten seconds (https://travis-ci.org/github/woocommerce/woocommerce/jobs/736437593#L198) the time to run this Travis job. PHP 7.4 is not installed by default in the image user by Travis and it is not needed to run the E2E tests.
2020-10-17 11:54:30 -03:00
Claudio Sanches 51912c659d
Merge pull request #27982 from rodrigoprimo/update/improve-travis-performance
Improve Travis build performance by running `npm install` only when needed
2020-10-15 19:56:55 -03:00
Rodrigo Primo 8e893a16c0 Improve Travis build performance by running `npm install` only when needed
This commit changes the .travis.yml file to run `npm install` (and two associated commands) only when running the build job that executes the E2E tests. Running `npm install` takes about 160 seconds to complete and, before this commit, we were running it for all build jobs unnecessarily.
2020-10-15 18:17:47 -03:00
Rodrigo Primo 0c6f7cb3fc Add the WP nightly build job to the allow_failures list
This commit adds the Travis build job that runs using WP nightly to the
list of jobs that are allowed to fail. Two days ago a change
(fa5a6c8622) was
introduced to WP nightly that broke hundreds of our unit tests. I'm
suggesting we move this build job to the list of jobs that are allowed
to fail while we work on a fix for this problem either on our side or on
WP core side. Having the build always failing due to a known issue in a yet to be released WP version has the potential to hide other more important failures.
2020-10-15 14:24:51 -03:00
Rodrigo Primo cccbc83b3c Bump the WP versions used in the Travis build jobs 2020-10-14 10:11:26 -03:00
Rodrigo Primo 22b231f6c4 Remove redundant Travis build job
This commit removes a redundant Travis build job that runs unit tests
against PHP 7.2 and the latest version of WP. A build job with the same
characteristics is alredy defined in
3bb94bc23f/.travis.yml (L20)
as if the WP version is not specified, the latest version is used
(3bb94bc23f/.travis.yml (L25)).
2020-10-14 10:05:11 -03:00
Christopher Allford 87bf6ce1aa Ensured Travis installs the dev composer resources 2020-09-24 10:14:07 -07:00
Christopher Allford e545bab9c9 Removed `nvm ci` because `@automattic/pupeteer-utils@0.0.1` is not in the NPM registry 2020-09-14 11:03:03 -07:00
Christopher Allford 9ee35583bd Added an NVM lock file and adjusted the engine in our package.json to conform 2020-09-14 09:59:50 -07:00
Ron Rennick 1c07d5ec5a restore looking up tags from git, add npm install to travis e2e script 2020-09-10 14:54:35 -03:00
Ron Rennick 88139f9603 update travis setup for e2e 2020-09-10 11:14:51 -03:00
Ron Rennick 25cbfd2452 run grunt directly in travis e2e 2020-09-09 17:00:06 -03:00
Christopher Allford f0023ec276 Added package building to npm install 2020-09-02 14:19:55 -07:00
Claudio Sanches 28f493ba16 Only build assets and packages on e2e tests 2020-08-19 15:49:08 -03:00
Claudio Sanches ca66a77079 Build packages twice again 2020-08-19 12:11:45 -03:00
Claudio Sanches 1699b34295 Use npm run build:core 2020-08-12 16:53:06 -03:00
Claudio Sanches b3160ccf52
Merge pull request #26483 from szepeviktor/patch-1
Make caching in CI predictable
2020-07-01 13:20:35 -03:00
Claudio Sanches d5010a6967
Merge pull request #26737 from navigatrum/nav/phpunit-min-6.5
Update PHPUnit minimum version to 6.5
2020-07-01 12:45:46 -03:00
Viktor Szépe f08b3c2d3a Merge remote-tracking branch 'upstream/master' into patch-1 2020-06-26 12:24:03 +00:00
Ron Rennick ee151bbd95 Merge branch 'master' into add/npm-publish 2020-06-22 13:46:54 -03:00
navigatrum 39ecd19645
update PHPUnit minimum version to 6.5
Use PHPUnit v.6.5 instead of v.5.6 for php 7.0 tests.
2020-06-09 18:12:27 +02:00
Christopher Allford df7db72855 Cleaned up our Travis config to suit the WP support policy 2020-05-19 07:00:32 -07:00
Viktor Szépe 4fb66b4ebb
Make caching in CI predictable
and properly name `install:`
2020-05-13 00:33:29 +02:00
Ron Rennick ed135109e0 add e2e component build
- add build script
- update component for path changes
- bump component version
- move ready post creation to component
- update component readme
2020-05-11 15:54:12 -03:00
Ron Rennick 0e2e91371a update for review items 2020-05-06 13:29:13 -03:00
Ron Rennick 4af4d29952 Simplify nodejs caching directive
- per https://docs.travis-ci.com/user/caching/
2020-05-04 11:31:14 -03:00
Ron Rennick 71fb49dc06 restore latest default.json from master 2020-05-01 13:28:59 -03:00
Ron Rennick 78e777f25f restore travis e2e setup script 2020-05-01 10:18:21 -03:00
Ron Rennick 6726f6423d merge travis config files 2020-04-30 19:58:37 -03:00
Ron Rennick 7fbbbf6608 update travis config 2020-04-30 16:43:36 -03:00
Ron Rennick d41fbc7ff2 update folder structure, use WordPress 5.4 2020-04-28 19:09:39 -03:00
Ron Rennick da494be615 merge master 2020-04-28 16:13:30 -03:00
Christopher Allford df27e1b361
Merge branch 'master' into fix/supported-wp-version-travis-update 2020-04-16 15:16:05 -07:00
Peter Fabian 7a314a6ebd Reduce the number of tests to run.
Just test with one PHP version, so that it doesn't take more than 30 minutes to finish.
2020-04-15 18:36:27 +02:00
Peter Fabian cdfd9e4ae2 Test all supported WordPress versions. 2020-04-15 13:07:51 +02:00
Peter Fabian a57de7d6a2 Minimum version is no longer PHP 5.6, but PHP 7.0 2020-04-15 13:05:59 +02:00
Ron Rennick b80b942428 remove the Travis config import 2020-04-14 12:06:26 -06:00
Ron Rennick 049d606b15 use consistent job name 2020-04-14 12:06:26 -06:00
Ron Rennick 393240a0f3 move e2e-env to tests/e2e-env 2020-04-14 12:06:25 -06:00
Ron Rennick c414eddf59 merge config from from https://github.com/woocommerce/woocommerce-admin/pull/3717 2020-04-14 12:06:25 -06:00
Christopher Allford 09df1205de Updated the minimum PHP version to 7.0 2020-04-06 17:07:33 -07:00
Steve Grunwell 70e7a8ed08 Add a Travis CI build using the minimum WooCommerce requirements
The current build matrix is always testing against the latest version of WordPress, but WooCommerce officially supports WordPress 5.0 and newer.
2020-03-11 15:42:40 +00:00
Brent Sessions eb35a1ba84 Move nvm update 2020-02-18 12:43:05 -07:00
Brent Sessions 3a180b98fe pull in latest version 2020-02-18 13:37:58 -05:00
Brent Sessions 9c2034a439 Trying to run with specific node version 2020-02-18 13:35:39 -05:00