I am wondering if its possible to check out and enable amptheme when running drupalci.
This would allow us to test the actual amp page.
I am going to do some tests to see if adding to composer.json and enabling the theme will work.
Also, will turn on verbose mode on drupalci to see the results.

Comments

marcelovani created an issue. See original summary.

  • marcelovani committed dbfec0d on 7.x-1.x
    Issue #3035317 by marcelovani: Install amptheme when running tests
    

  • marcelovani committed 359ada6 on 7.x-1.x
    Issue #3035317 by marcelovani: Added drupalci.yml to enable verbose
    

  • marcelovani committed 9be259b on 7.x-1.x
    Issue #3035317 by marcelovani: Added drupalci.yml to enable verbose
    

  • marcelovani committed 48db43b on 7.x-1.x
    Issue #3035317 by marcelovani: Added drupalci.yml to enable verbose
    

  • marcelovani committed 2bbdbb2 on 7.x-1.x
    Issue #3035317 by marcelovani: Trying to make verbose work
    

marcelovani’s picture

It was a bit fiddly but it looks like it worked.
Now, with the amptheme enabled, we can see the output like that

<html amp lang="en" dir="ltr">
  <head>
    <meta charset="utf-8">
    <title>sPH7XXth | Drupal</title>
    <meta name="Generator" content="Drupal 7 (http://drupal.org)" />
<link rel="canonical" href="http://localhost/node/1" />
<link rel="shortlink" href="/node/1" />

The nice thing is that we can now add more tests for the AMP markup.

marcelovani’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.