2014-09-30 25 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