Browse Source

Build improvements

Jordi Boggiano 5 years ago
parent
commit
702a532a61
2 changed files with 8 additions and 9 deletions
  1. 8 6
      .travis.yml
  2. 0 3
      phpstan/config.neon

+ 8 - 6
.travis.yml

@@ -1,6 +1,6 @@
 language: php
 language: php
 
 
-dist: trusty
+dist: bionic
 
 
 git:
 git:
   depth: 5
   depth: 5
@@ -9,22 +9,24 @@ cache:
   directories:
   directories:
     - $HOME/.composer/cache
     - $HOME/.composer/cache
 
 
-addons:
-  apt:
-    packages:
-      - parallel
-
 matrix:
 matrix:
   include:
   include:
     - php: 5.3
     - php: 5.3
       dist: precise
       dist: precise
     - php: 5.4
     - php: 5.4
+      dist: trusty
     - php: 5.5
     - php: 5.5
+      dist: trusty
     - php: 5.6
     - php: 5.6
+      dist: xenial
     - php: 7.0
     - php: 7.0
+      dist: xenial
     - php: 7.1
     - php: 7.1
+      dist: xenial
     - php: 7.2
     - php: 7.2
+      dist: xenial
     - php: 7.3
     - php: 7.3
+      dist: xenial
     # Regular 7.4 build with locked deps
     # Regular 7.4 build with locked deps
     - php: 7.4
     - php: 7.4
       env:
       env:

+ 0 - 3
phpstan/config.neon

@@ -17,9 +17,6 @@ parameters:
         # variable defined in eval
         # variable defined in eval
         - '~^Undefined variable: \$res$~'
         - '~^Undefined variable: \$res$~'
 
 
-        # erroneous detection of missing const, see https://github.com/phpstan/phpstan/issues/2960
-        - '~^Access to undefined constant ZipArchive::OPSYS_UNIX.$~'
-
         # we don't have different constructors for parent/child
         # we don't have different constructors for parent/child
         - '~^Unsafe usage of new static\(\)\.$~'
         - '~^Unsafe usage of new static\(\)\.$~'