nozavroni / csvelte

🕺🏻 CSV and Tabular Data library for PHP
http://phpcsv.com/
Other
6 stars 0 forks source link

Something broke the PHP7 build... #149

Closed nozavroni closed 7 years ago

nozavroni commented 7 years ago

I don't know exactly when it happened but at some point the PHP7 build stopped working. Needs to be fixed before the v0.2.1 release.

Using worker: worker-linux-docker-c77f543f.prod.travis-ci.org:travis-linux-12

Build system information
Build language: php
Build group: stable
Build dist: precise
Build id: 171898953
Job id: 171898955
travis-build version: f2e5e21fe
Build image provisioning date and time
Thu Feb  5 15:09:33 UTC 2015
Operating System Details
Distributor ID: Ubuntu
Description:    Ubuntu 12.04.5 LTS
Release:    12.04
Codename:   precise
Linux Version
3.13.0-29-generic
Cookbooks Version
a68419e https://github.com/travis-ci/travis-cookbooks/tree/a68419e
GCC version
gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

LLVM version
clang version 3.4 (tags/RELEASE_34/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix
Pre-installed Ruby versions
ruby-1.9.3-p551
Pre-installed Node.js versions
v0.10.36
Pre-installed Go versions
1.4.1
Redis version
redis-server 2.8.19
riak version
2.0.2
MongoDB version
MongoDB 2.4.12
CouchDB version
couchdb 1.6.1
Neo4j version
1.9.4
RabbitMQ Version
3.4.3
ElasticSearch version
1.4.0
Installed Sphinx versions
2.0.10
2.1.9
2.2.6
Default Sphinx version
2.2.6
Installed Firefox version
firefox 31.0esr
PhantomJS version
1.9.8
ant -version
Apache Ant(TM) version 1.8.2 compiled on December 3 2011
mvn -version
Apache Maven 3.2.5 (12a6b3acb947671f09b81f49094c53f426d8cea1; 2014-12-14T17:29:23+00:00)
Maven home: /usr/local/maven
Java version: 1.7.0_76, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-7-oracle/jre
Default locale: en_US, platform encoding: ANSI_X3.4-1968
OS name: "linux", version: "3.13.0-29-generic", arch: "amd64", family: "unix"

$ export DEBIAN_FRONTEND=noninteractive
W: Size of file /var/lib/apt/lists/dl.hhvm.com_ubuntu_dists_precise_main_binary-amd64_Packages.gz is not what the server reported 2047 2461
W: Size of file /var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_precise-backports_multiverse_source_Sources.gz is not what the server reported 5886 5888
W: Size of file /var/lib/apt/lists/ppa.launchpad.net_travis-ci_zero-mq_ubuntu_dists_precise_main_binary-amd64_Packages.gz is not what the server reported 832 1195
W: Size of file /var/lib/apt/lists/ppa.launchpad.net_ubuntugis_ppa_ubuntu_dists_precise_main_binary-amd64_Packages.gz is not what the server reported 33653 36677
W: Size of file /var/lib/apt/lists/ppa.launchpad.net_ubuntugis_ppa_ubuntu_dists_precise_main_binary-i386_Packages.gz is not what the server reported 33699 36733
Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
  libc-bin libc-dev-bin libc6-dev
Suggested packages:
  glibc-doc
The following packages will be upgraded:
  libc-bin libc-dev-bin libc6 libc6-dev
4 upgraded, 0 newly installed, 0 to remove and 249 not upgraded.
Need to get 8,840 kB of archives.
After this operation, 14.3 kB disk space will be freed.
Get:1 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libc6-dev amd64 2.15-0ubuntu10.15 [2,943 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libc-dev-bin amd64 2.15-0ubuntu10.15 [84.7 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libc-bin amd64 2.15-0ubuntu10.15 [1,177 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libc6 amd64 2.15-0ubuntu10.15 [4,636 kB]
Fetched 8,840 kB in 0s (38.2 MB/s)
Preconfiguring packages ...
(Reading database ... 70845 files and directories currently installed.)
Preparing to replace libc6-dev 2.15-0ubuntu10.10 (using .../libc6-dev_2.15-0ubuntu10.15_amd64.deb) ...
Unpacking replacement libc6-dev ...
Preparing to replace libc-dev-bin 2.15-0ubuntu10.10 (using .../libc-dev-bin_2.15-0ubuntu10.15_amd64.deb) ...
Unpacking replacement libc-dev-bin ...
Preparing to replace libc-bin 2.15-0ubuntu10.10 (using .../libc-bin_2.15-0ubuntu10.15_amd64.deb) ...
Unpacking replacement libc-bin ...
Processing triggers for man-db ...
Setting up libc-bin (2.15-0ubuntu10.15) ...
(Reading database ... 70844 files and directories currently installed.)
Preparing to replace libc6 2.15-0ubuntu10.10 (using .../libc6_2.15-0ubuntu10.15_amd64.deb) ...
Unpacking replacement libc6 ...
Setting up libc6 (2.15-0ubuntu10.15) ...
Setting up libc-dev-bin (2.15-0ubuntu10.15) ...
Setting up libc6-dev (2.15-0ubuntu10.15) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
$ git clone --depth=50 --branch=releases/v0.2.1 https://github.com/nozavroni/csvelte.git nozavroni/csvelte
Cloning into 'nozavroni/csvelte'...
remote: Counting objects: 558, done.
remote: Compressing objects: 100% (287/287), done.
remote: Total 558 (delta 302), reused 468 (delta 258), pack-reused 0
Receiving objects: 100% (558/558), 226.37 KiB | 0 bytes/s, done.
Resolving deltas: 100% (302/302), done.
Checking connectivity... done.

$ cd nozavroni/csvelte
$ git checkout -qf 03c2906ad9d4dfe33541c23d8cf9cba8fab303b1

This job is running on container-based infrastructure, which does not allow use of 'sudo', setuid and setguid executables.
If you require sudo, add 'sudo: required' to your .travis.yml
See https://docs.travis-ci.com/user/workers/container-based-infrastructure/ for details.
$ phpenv global 7.0 2>/dev/null

7.0 is not pre-installed; installing

$ phpenv global 7.0

$ composer self-update
You are running composer with xdebug enabled. This has a major impact on runtime performance. See https://getcomposer.org/xdebug
You are already using composer version 1.2.1 (stable channel).

Setting up build cache
$ export CASHER_DIR=$HOME/.casher
$ Installing caching utilities

attempting to download cache archive
fetching releasesv0.2.1/cache-linux-precise-e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855--php-7.0.tgz
found cache

adding /home/travis/.composer/cache to cache

$ php --version
PHP 7.0.12 (cli) (built: Oct 19 2016 13:32:58) ( ZTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
    with Zend OPcache v7.0.12, Copyright (c) 1999-2016, by Zend Technologies
    with Xdebug v2.4.1, Copyright (c) 2002-2016, by Derick Rethans
$ composer --version
You are running composer with xdebug enabled. This has a major impact on runtime performance. See https://getcomposer.org/xdebug
Composer version 1.2.1 2016-09-12 11:27:19

$ composer self-update
You are running composer with xdebug enabled. This has a major impact on runtime performance. See https://getcomposer.org/xdebug
You are already using composer version 1.2.1 (stable channel).

$ export PATH="$HOME/.composer/vendor/bin:$PATH"

$ travis_retry ./travis/install.sh
You are running composer with xdebug enabled. This has a major impact on runtime performance. See https://getcomposer.org/xdebug
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
  - Installing mikey179/vfsstream (v1.6.4)
    Loading from cache

  - Installing webmozart/assert (1.1.0)
    Loading from cache

  - Installing phpdocumentor/reflection-common (1.0)
    Loading from cache

  - Installing phpdocumentor/type-resolver (0.2)
    Loading from cache

  - Installing phpdocumentor/reflection-docblock (3.1.1)
    Loading from cache

  - Installing phpunit/php-token-stream (1.4.8)
    Loading from cache

  - Installing symfony/yaml (v3.1.6)
    Loading from cache

  - Installing sebastian/version (2.0.0)
    Loading from cache

  - Installing sebastian/resource-operations (1.0.0)
    Loading from cache

  - Installing sebastian/recursion-context (1.0.2)
    Loading from cache

  - Installing sebastian/object-enumerator (1.0.0)
    Loading from cache

  - Installing sebastian/global-state (1.1.1)
    Loading from cache

  - Installing sebastian/exporter (1.2.2)
    Loading from cache

  - Installing sebastian/environment (1.3.8)
    Loading from cache

  - Installing sebastian/diff (1.4.1)
    Loading from cache

  - Installing sebastian/comparator (1.2.0)
    Loading from cache

  - Installing phpunit/php-text-template (1.2.1)
    Loading from cache

  - Installing doctrine/instantiator (1.0.5)
    Loading from cache

  - Installing phpunit/phpunit-mock-objects (3.4.0)
    Loading from cache

  - Installing phpunit/php-timer (1.0.8)
    Loading from cache

  - Installing phpunit/php-file-iterator (1.4.1)
    Loading from cache

  - Installing sebastian/code-unit-reverse-lookup (1.0.0)
    Loading from cache

  - Installing phpunit/php-code-coverage (4.0.1)
    Loading from cache

  - Installing phpspec/prophecy (v1.6.1)
    Loading from cache

  - Installing myclabs/deep-copy (1.5.4)
    Loading from cache

  - Installing phpunit/phpunit (5.6.2)
    Loading from cache

sebastian/global-state suggests installing ext-uopz (*)
phpunit/phpunit suggests installing phpunit/php-invoker (~1.1)
Generating autoload files

$ composer install
You are running composer with xdebug enabled. This has a major impact on runtime performance. See https://getcomposer.org/xdebug
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Nothing to install or update
Generating autoload files

$ ./travis/before_script.sh
--2016-10-31 05:20:57--  https://s3-us-west-2.amazonaws.com/csvelte/csvsampledata.tar.gz
Resolving s3-us-west-2.amazonaws.com (s3-us-west-2.amazonaws.com)... 54.231.184.244
Connecting to s3-us-west-2.amazonaws.com (s3-us-west-2.amazonaws.com)|54.231.184.244|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2996629 (2.9M) [application/x-gzip]
Saving to: `csvsampledata.tar.gz'

100%[======================================>] 2,996,629   2.82M/s   in 1.0s    

2016-10-31 05:20:58 (2.82 MB/s) - `csvsampledata.tar.gz' saved [2996629/2996629]

files/
files/._.DS_Store
files/.DS_Store
files/._banklist-qsc-sm.csv
files/banklist-qsc-sm.csv
files/._banklist-qsc.csv
files/banklist-qsc.csv
files/._banklist.csv
files/banklist.csv
files/._datagovbldgrexus.csv
files/datagovbldgrexus.csv
files/._Demographic_Statistics_By_Zip_Code.csv
files/Demographic_Statistics_By_Zip_Code.csv
files/._iouzipcodes2011.csv
files/iouzipcodes2011.csv
files/._Most+Recent+Cohorts+(Scorecard+Elements).csv
files/Most+Recent+Cohorts+(Scorecard+Elements).csv
files/._sample.csv
files/sample.csv
files/._SampleCSVFile_1109kb.csv
files/SampleCSVFile_1109kb.csv
files/._SampleCSVFile_119kb.csv
files/SampleCSVFile_119kb.csv
files/._SampleCSVFile_11kb.csv
files/SampleCSVFile_11kb.csv
files/._SampleCSVFile_2kb.csv
files/SampleCSVFile_2kb.csv
files/._SampleCSVFile_556kb.csv
files/SampleCSVFile_556kb.csv
files/temp/
files/tempdeleteme.csv
files/._userssharedsdfratebrthsyaw1819raceethncty20002012.csv
files/userssharedsdfratebrthsyaw1819raceethncty20002012.csv
files/temp/deleteme.csv

$ ./travis/script.sh
PHPUnit 5.6.2 by Sebastian Bergmann and contributors.

Runtime:       PHP 7.0.12 with Xdebug 2.4.1
Configuration: /home/travis/build/nozavroni/csvelte/phpunit.xml.dist

...............................................................  63 / 257 ( 24%)
............................................................... 126 / 257 ( 49%)
.........................................F..................... 189 / 257 ( 73%)
............................................................... 252 / 257 ( 98%)
.....                                                           257 / 257 (100%)

Time: 3.74 seconds, Memory: 14.00MB

There was 1 failure:

1) CSVelteTest\CollectionTest::test2DCollectionMode
Failed asserting that two arrays are equal.
--- Expected
+++ Actual
@@ @@
 Array (
     0 => 1
     1 => 1
     2 => 200
     3 => 100
-    4 => 25
+    4 => 10
     5 => 0.10000000000000001
 )

/home/travis/build/nozavroni/csvelte/tests/CSVelte/CollectionTest.php:577

FAILURES!
Tests: 257, Assertions: 777, Failures: 1.

The command "./travis/script.sh" exited with 1.
store build cache

nothing changed, not updating cache

$ ./travis/after_script.sh

Done. Your build exited with 1.
nozavroni commented 7 years ago

This has been fixed and tested.