[wp-trac] [WordPress Trac] #39486: In Travis, skip some tests when not on truck

WordPress Trac noreply at wordpress.org
Thu Jan 5 16:42:09 UTC 2017


#39486: In Travis, skip some tests when not on truck
------------------------------+-----------------------------
 Reporter:  jorbin            |      Owner:
     Type:  defect (bug)      |     Status:  new
 Priority:  normal            |  Milestone:  Awaiting Review
Component:  Build/Test Tools  |    Version:
 Severity:  normal            |   Keywords:
  Focuses:                    |
------------------------------+-----------------------------
 There are some tests that are around to serve as reminders for modern
 development such as to ensure the copy write year is updated and ensure
 that the readme PHP recommendation matches the recommendation on
 wordpress.org

 For the automated running of tests, tests such as these should be skipped
 by detecting the branch we are on in travis, and only running the test
 when the branch is master.

 We can use [https://docs.travis-ci.com/user/environment-variables/ travis
 enviornement variable] `TRAVIS_BRANCH` to detect the branch.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/39486>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list