Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/231.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php travis无法解析我的配置文件_Php_Utf 8_Character Encoding_Travis Ci - Fatal编程技术网

Php travis无法解析我的配置文件

Php travis无法解析我的配置文件,php,utf-8,character-encoding,travis-ci,Php,Utf 8,Character Encoding,Travis Ci,我在让travis运行我的测试时遇到了问题。它在解析.travis.yml-file时停止。 您可以在此处查看存储库: 该文件的内容如下所示: language: php php: - 5.5 - hhvm services: mysql before_script: # installation - composer self-update - composer install --dev --prefer-source --no-interaction # dat

我在让travis运行我的测试时遇到了问题。它在解析.travis.yml-file时停止。 您可以在此处查看存储库:

该文件的内容如下所示:

language: php
php:
  - 5.5
  - hhvm

services: mysql

before_script:
  # installation
  - composer self-update
  - composer install --dev --prefer-source --no-interaction
  # database configuration
  - mysql -e 'create database cc_testing;'
  # startup server environment
  - php artisan migrate:install
  - php artisan migrate
  - php artisan migrate:install --env=”testing”
  - php artisan serve
  - sleep 5

script:
  - phpunit
  - vendor/bin/behat
错误消息是:

ERROR: An error occured while trying to parse your .travis.yml file.

Please make sure that the file is valid YAML.

http://lint.travis-ci.org can check your .travis.yml.

The error was "'reader' unacceptable character '' (0x80) special characters are not allowed

in "'reader'", position 373 at line 0 column 0".
我认为文件的字符集有错误。但我不明白。一个有趣的事实:travis验证页面说该文件没有问题(请参阅)


有没有人有类似的问题?有人知道解决办法吗?谢谢你的帮助。

我成功地运行了这个脚本。错误不在第一行。这是错误的“后来

我的连字符类型错误,无法看到,林特再次说yaml是有效的,但构建不会运行

要追踪流氓角色,请将.yml视为一行,并按“'reader'”中XXX位置给出的字符数进行计数