Commit Graph

202 Commits

Author SHA1 Message Date
Claudio Sanches d6e3cf6de9 Update default GIT branch 2021-02-25 20:51:14 -03:00
Ron Rennick 49be111d87
remove travis_retry from e2e test script (#28841) 2021-01-22 15:02:34 +01:00
Néstor Soriano b36a06ca08
Merge pull request #27844 from woocommerce/php8/use-custom-phpunit-7
[PHP 8] Use a custom version of PHPUnit 7 for PHP 8 compatibility
2021-01-14 11:46:01 +01:00
Peter Fabian 381f290302 Bump WP versions in Travis after WP 5.6 release. 2021-01-11 18:34:54 +01:00
Nestor Soriano d4aa20ddbb Merge branch 'master' into php8/use-custom-phpunit-7 2021-01-04 16:28:28 +01:00
Nestor Soriano 912f27264e Use fork from downloaded zip instead of from GitHub,
since Travis can't clone GH repos without a SSH key.
2020-12-17 16:47:32 +01:00
Ron Rennick f74969f1a6
Merge pull request #28548 from woocommerce/travis-retry
Retry e2e tests automatically in case of failure
2020-12-15 09:38:50 -04:00
Nestor Soriano 3139bd1842 Change PHPUnit version to 6.5.14 (compatible with PHP 7.x), but
switch to the fork in Travis for PHP 8.
2020-12-11 16:47:24 +01:00
Peter Fabian 38546b43d5
Merge pull request #28400 from szepeviktor/patch-3
Put Travis configuration in chronological order
2020-12-10 19:21:09 +01:00
Rodrigo Primo 2accebdd2e Retry e2e tests automatically in case of failure
This commit adds again the Travis function `travis_retry` (https://docs.travis-ci.com/user/common-build-problems/#travis_retry) to all the commands used to execute the E2E tests as they sometimes fail due to factors outside our control and they pass if we retry them manually. See for example this issue for an instance where often times the E2E tests fail, the issue describes a problem that happened in a local environment, but we see the same error happening on Travis as well: https://github.com/woocommerce/woocommerce/issues/27846. I actually just saw it and had to restart a Travis build job manually and that is what prompted me to create this commit. Having Travis retry the command automatically should save us some time when we review PRs as there is a chance the command will pass on a subsequent run and we won't have to retry it manually and wait for it to finish.

We have used this function in the past (see 67b5b270f3), but it got removed in 1658dd3962. But after some conversation about it a couple of weeks ago, we decided to use it again.
2020-12-10 14:44:06 -03:00
Ron Rennick fb18ec258e use composer nodev in E2E test in Travis 2020-12-04 12:33:13 -04:00
Viktor Szépe 186759382e
Put Travis configuration in chronological order
And fix floats in YAML
2020-11-25 05:49:42 +01:00
Rodrigo Primo e1856b961d Merge branch 'master' into update/travis-git-depth 2020-11-17 10:27:26 -03:00
Christopher Allford c2eb62fd3b Locked Composer at 2.0.6 2020-11-13 12:05:28 -08:00
Christopher Allford 05ebdf9677 Adjusted Travis' PHPUnit to use the vendor binary instead of a global install 2020-11-11 23:42:14 -08:00
Christopher Allford 84968cd1ff Removed Travis Composer downgrade 2020-11-11 13:53:53 -08:00
Rodrigo Primo cc71d70cce Change git cloning depth to 1 to make the Travis builds faster
By default, Travis uses a depth of 50 when cloning git repositories.
This commit changes the depth to 1. This will make each Travis build
run slightly faster.
2020-10-30 10:49:27 -03:00
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