Commit Graph

67 Commits

Author SHA1 Message Date
Claudio Sanches 39e27196c4
Merge pull request #17853 from rodrigoprimo/fix/run-phpcs-only-once
Don't run PHPCS on the code coverage Travis job
2017-11-22 12:16:34 -02:00
Rodrigo Primo 47154cf29a Don't run PHPCS on the code coverage Travis job
PR #17680 added a new PHP 7.1 Travis build job to generate code coverage report. PHPCS was configured to run on all PHP 7.1 build jobs. So this means that after #17680 was merged, Travis started running PHPCS twice.

This commit fixes this issue by setting a new environment variable called `$RUN_PHPCS` and using this variable, instead of the PHP version, to decide when to run PHPCS.
2017-11-21 18:17:55 -02:00
Rodrigo Primo 742cd367b0 Prevent Travis builds duplication
This commit changes Travis configuration file to specify a list of branches that it should build. This way Travis will only create a new build when a commit is pushed to the master branch and release branches and when tags are created. The behavior for PRs is not modified and PR creation and updates will still trigger builds.

Doing this to speed up Travis build by preventing it from running two builds for PR that are created from a branch of the same repository. Before this change, Travis would create a build when the branch is pushed to GitHub (continuous-integration/travis-ci/push) and another one when the PR is created (continuous-integration/travis-ci/pr). For an example, see https://github.com/woocommerce/woocommerce/pull/17680.
2017-11-21 11:28:12 -02:00
Mike Jolley 387093cd27
Merge pull request #17687 from rodrigoprimo/update/remove-unnecessary-travis-config
Travis configuration cleanup
2017-11-14 10:21:15 +00:00
Rodrigo Primo 5078359eca Remove unnecessary Travis environment variable PHP_LATEST_STABLE 2017-11-13 17:24:52 -02:00
Rodrigo Primo 9188f814c3 Remove unused Travis environment variable
This commit removes the unused Travis enrivonment variable PHP_LATEST_STABLE.
2017-11-13 17:22:46 -02:00
Rodrigo Primo d847323867 Remove unnecessary Travis configuration
It is not necessary to declare environment variables for a specific build job if they are the same as the environment variables declared for all build jobs.
2017-11-13 17:18:31 -02:00
Rodrigo Primo 2dcb04e2e2 Generate code coverage report on a separate non-blocking Travis job
Travis build is taking about 40 minutes to complete, and that is mostly because of the generation of the code coverage report.

To address that, this commit changes Travis configuration to run the command to generate code coverage report on a separate non-blocking Travis job. This way once the jobs that run the tests finishes, Travisi will mark the build as successful and will keep running code coverage on a separate job.
2017-11-13 15:57:11 -02:00
Claudio Sanches c95137f9c0 Moved phpcs after phpunit 2017-10-10 10:50:22 -03:00
Claudio Sanches ab04636ef0 Adds PHPCS in Travis CI 2017-10-09 17:31:15 -03:00
Claudio Sanches cd554c1bdf Restored tests/bin/phpunit.sh 2017-10-05 13:14:56 -03:00
Mike Jolley 212449f391 Only generate coverage on 7.x 2017-09-26 14:09:27 +01:00
Mike Jolley 66f253e4a3 phpunit tweak 2017-09-26 13:29:13 +01:00
Mike Jolley be014346f1 Travis 2017-09-26 13:24:11 +01:00
Mike Jolley 80748089c4 Travis 2017-09-26 13:18:56 +01:00
Mike Jolley a028bcaec3 Codecov config 2017-09-26 12:59:15 +01:00
Mike Jolley 2f294a47d8 version 2017-08-22 12:02:47 +01:00
Mike Jolley 901a70268b test tweak 2017-08-22 11:02:39 +01:00
Claudio Sanches c5055ed2f7 Tidy up Scrutinizer, PHPUnit and Travis config 2017-07-21 14:25:27 -03:00
Claudio Sanches 4251bd5614 Move code coverage to Scrutinizer 2017-07-20 16:50:12 -03:00
Mike Jolley a7fec4475f 5.3 does not like dist 2017-07-20 15:55:45 +01:00
Mike Jolley 80cbba49d6 More test tweaks 2017-07-20 15:41:28 +01:00
Mike Jolley b14c719fc0 Travis 2017-07-20 12:39:46 +01:00
Mike Jolley 1c26587948 travis 2017-07-20 12:12:29 +01:00
Mike Jolley 3fbba9d869 More travis config 2017-07-20 12:00:21 +01:00
Mike Jolley aa7f823763 Travis config 2017-07-20 11:42:53 +01:00
Mike Jolley c569d4fd81 Travis 2017-07-20 11:23:37 +01:00
Akeda Bagus 53807185a8
Fixed typos.
These typos are catched by `misspell` program.

```
find . -type f | grep -v assets | grep -v dummy-data | grep -v i18n | grep -v node_modules | grep -v .git | grep -v apigen |  xargs misspell -w
```

Some results were excluded because of 3rd party ownership and non-english
sentences.
2017-07-10 12:56:28 +07:00
Ramon van Belzen f186922683 travis-ci: remove hhvm from testing matrix 2017-05-29 18:12:30 +02:00
Mike Jolley cbe6934f61 Try in sh file so 5.2 does not break 2017-03-14 17:17:35 +00:00
Mike Jolley 0aad398144 Add to travis yml 2017-03-14 17:11:02 +00:00
Jon Surrell b67a3e0119 Unquote 7.1 in .travis.yml 2017-01-17 10:07:10 +01:00
Jon Surrell 9069bce4d3 Change travis setup to exclude coverage from all but latest stable
Add PHP_LATEST_STABLE env to travis

Use same bash conditional for test scripts
2017-01-16 21:11:21 +01:00
Jon Surrell 9d0d707c8a Allow failure for PHP 5.3 travis builds
Builds on this particular box fail randomly and very frequently.
2017-01-13 07:46:37 +01:00
Mike Jolley ab76036c1f Enable 7.1 tests 2017-01-11 12:58:10 +00:00
Mike Jolley fcf0ab0ba5 Tweak travis code to reduce test times. 2016-12-07 18:44:18 +00:00
Mike Jolley d1f4177c97 Allow fail because WP notices in tests. 2016-12-06 16:57:35 +00:00
Ramon van Belzen f97f2c603a travis-ci: test with php 7.1 2016-12-05 08:14:56 +01:00
Claudio Sanches 0d803ef5a1 PHPunit already looks for syntax errors 2016-09-13 17:45:40 -03:00
Aristeides Stathopoulos b70f62bfa9 Add 4th-level-deep tests 2016-09-08 00:34:39 +03:00
Aristeides Stathopoulos f6af54cb72 no need for verbose-mode phpcs tests. 2016-09-08 00:33:34 +03:00
Aristeides Stathopoulos cdf70bb953 don't run phpcs on the vendor folder. 2016-08-27 20:06:32 +03:00
Aristeides Stathopoulos 9bf8eb861c indentation 2016-08-27 19:53:46 +03:00
Aristeides Stathopoulos 7aa3a0fc9e move scripts 2016-08-27 19:52:45 +03:00
Aristeides Stathopoulos 08250b9339 exclude vendor folder 2016-08-27 17:35:11 +03:00
Aristeides Stathopoulos c0b43e6370 attempt to run PHPCS on travis 2016-08-27 17:18:14 +03:00
Jeff Stieler 5b7646953e Remove unsupported versions of WordPress from Travis CI build matrix.
At the time of this commit, `latest` and the minimum supported version of `4.4` are one in the same.
2016-06-08 15:07:48 -06:00
Mike Jolley dc5d376583 Test all PHP versions against WP latest, and older versions against recommended version. 2016-03-23 15:37:13 +00:00
Mike Jolley d238a4c245 hhvm in travis 2016-03-23 12:04:42 +00:00
Mike Jolley d63d062470 Run self update in script to avoid breaking tests on 5.2 2016-03-23 10:46:35 +00:00