2014-09-30 26 views
1

我有一个问题让Travis来运行我的测试。它在解析我的.travis.yml文件时停止。 你可以看看仓库在这里:https://github.com/steve-korzinetzki/costcontroltravis无法解析我的配置文件

文件的内容是这样的:

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验证页面说文件没问题(请参阅http://lint.travis-ci.org/steve-korzinetzki/costcontrol)。

有没有人有类似的问题?有谁知道解决方案?谢谢你的帮助。

回答

0

我设法让这个脚本运行。错误不在第一行。这是错误的“后来

0

我有一种错误的煤矿连字符这是不可能看到的,再棉短绒称YAML是有效的,但在构建将无法运行。

追查流氓字符,请将.yml作为单行处理,并计入“'阅读器'”中给出的字符数,位置XXX