Skip to content

Switch Travis CI environment to Trusty - PHP 5.2 to be no longer available Sept 2017#7453

Merged
kraftbj merged 2 commits intoAutomattic:masterfrom
ntwb:patch-1
Jul 19, 2017
Merged

Switch Travis CI environment to Trusty - PHP 5.2 to be no longer available Sept 2017#7453
kraftbj merged 2 commits intoAutomattic:masterfrom
ntwb:patch-1

Conversation

@ntwb
Copy link
Copy Markdown
Contributor

@ntwb ntwb commented Jul 12, 2017

Via #WP41292

Travis CI have announced they are switching to Trusty as the default distro come July 18th 2017

https://blog.travis-ci.com/2017-07-11-trusty-as-default-linux-is-coming


The current availability of PHP 5.2 & 5.3 in the Travis CI build environment is the following:

  1. dist: precise with sudo: false
  2. dist: trusty with sudo: false
  3. dist: precise with sudo: false
  4. dist: precise with sudo: required

Jetpack's current Travis CI config uses option 1 above
Travis CI will override this configuration with option 2 come July 18th 2017
Workaround to use PHP 5.2 & 5.3 until September 2017 using option 3 for the PHP 5.2 & 5.3 Travis CI job
Come September 2017 Travis CI will overwrite option 3 above with option 4

I've created the following Travis CI issue on the subject: travis-ci/travis-ci#8072

@kraftbj kraftbj added Unit Tests [Pri] High Bug When a feature is broken and / or not performing as intended labels Jul 12, 2017
@ntwb
Copy link
Copy Markdown
Contributor Author

ntwb commented Jul 12, 2017

PHP 5.3 is also affected! Issue and PR updated

@ntwb
Copy link
Copy Markdown
Contributor Author

ntwb commented Jul 12, 2017

There's unrelated PHPunit tests causing the failures here of this PR:

There was 1 failure:
1) WP_Test_Grunion_Contact_Form::test_parse_contact_field_escapes_things_inside_a_value_and_attribute_and_the_content
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'[contact-field label='Name' type='name' required='1'/][contact-field label='Email' type=''email'' req'uired='1'/][contact-field label='asdasd' type='text'/][contact-field id='1' required 'derp' herp asd lkj]adsasd[/contact-field]'
+'[contact-field label='Name' type='name' required='1'/][contact-field label='Email' type=''email'' req'uired='1'/][contact-field label='asdasd' type='text'/][contact-field id='1' required derp herp asd lkj]adsasd[/contact-field]'
/tmp/wordpress-master/src/wp-content/plugins/jetpack/tests/php/modules/contact-form/test_class.grunion-contact-form.php:536
FAILURES!
Tests: 959, Assertions: 2231, Failures: 1, Skipped: 24, Incomplete: 12.

@dereksmart
Copy link
Copy Markdown
Contributor

Unrelated PHP unit tests should be fixed now, re-running the tests

@ntwb
Copy link
Copy Markdown
Contributor Author

ntwb commented Jul 18, 2017

FYI: Travis CI have not specified any order of migration, these changes could affect Jetpack anytime now

@kraftbj kraftbj merged commit acd858f into Automattic:master Jul 19, 2017
@kraftbj
Copy link
Copy Markdown
Contributor

kraftbj commented Jul 19, 2017

Going to merge this in to confirm this resolves the issue we're seeing in new PRs :) (Merging out of process only since it is a unit test issue, not production code).

@ntwb ntwb deleted the patch-1 branch July 19, 2017 22:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug When a feature is broken and / or not performing as intended [Pri] High Unit Tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants