【发布时间】:2015-03-10 23:43:41
【问题描述】:
让 travis 运行我的测试时遇到问题。它在解析我的 .travis.yml 文件期间停止。 您可以在此处查看存储库:https://github.com/steve-korzinetzki/costcontrol
文件内容如下:
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)。
有没有人遇到过类似的问题?有谁知道解决方案?感谢您的帮助。
【问题讨论】:
标签: php utf-8 character-encoding travis-ci