travis-ci / beta-features

The perfect place to leave feedback and comments on newly released Beta Features.
56 stars 68 forks source link

Php projects build under versions 7.0 and 7.1 #33

Closed masterjus closed 6 years ago

masterjus commented 6 years ago

I've decided to write this bug here as this is beta feature issue:

I try to build my project under php versions 7.0 and 7.1 but this how build looks like

image

So it's running tests for 7.0 twice but never doing build for php 7.1

My .travis.yml

sudo: true
language: php
php:
  - '7.0'
  - '7.1'

before_script:
  - sudo add-apt-repository ppa:ondrej/php -y
  - sudo apt-get update -yy
  - sudo apt-get install -y php-bcmath
  - composer install -o -q

jobs:
  include:
    - stage: build
      install:
        - composer require edgedesign/phpqa --update-no-dev --no-progress -q
      script:
        - ./vendor/bin/phpqa --analyzedDirs src --report --buildDir ./docs --tools phpcs:0,phpmd,phpcpd:0,phpmetrics:0,phploc,pdepend
    - stage: test
      script:
        - phpunit
Bilge commented 6 years ago

Not a bug, you just haven't read the documentation carefully enough.

joshk commented 6 years ago

As Stages is now released and GA, I'm going to close this issue.

If you have any feedback on improvements we should consider, please feel free to add a discussion in our new Community forum: https://travis-ci.community/c/product

Happy building

Josh