2016-08-22 4 views
1

の構築:Gitのプッシュを行った後トラヴィスCIセマンティック・リリースは、次のようになりますtravis.ymlファイル生成を経て、私がしているエラー

sudo: false 
language: node_js 
cache: 
    directories: 
    - node_modules 
notifications: 
    email: false 
node_js: 
    - 'iojs' 
before_install: 
    - npm i -g [email protected]^2.0.0 
before_script: 
    - npm prune 
    script: 
    - npm run test:single 
after_success: 
    - npm run semantic-release 
branches: 
    except: 
    - /^v\d+\.\d+\.\d+$/ 

を、私はトラヴィスから、次のエラーを取得しています:

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 log message was: Build config file had a parse error: did not find expected '-' indicator while parsing a block collection at line 13 column 3. 

システムメッセージ: 私たちは、新しいsudoの対応の高精度とトラスティIによる故障を構築する見ている私も、次のシステムメッセージを取得していますトラヴィスからのメールで

メイジ。詳細はhereを参照してください。忍耐強くありがとうございます。

私のtravis.ymlファイルにエラーがありますか?

おかげ Sohail

+1

あなたは[lint.travis-ci.org](HTTPに貼り付けました。 travis-ci.org)? – cartant

答えて

2

ライン13の書式設定エラーがあります:before_scriptセクションでは。

script: 
    - npm run test:single 

:からtravis-ci validator

+0

バリデータで同じエラーが発生しました。実際のエラーは、スクリプト属性の空白にあります。その空白を削除したとき、今は正常に動作しています:) – user2371684

+0

それが固定されていることを知って偉大な:) – gonephishing

0

削除空白であなたのYAMLファイルを検証します//糸くず:

script: 
    - npm run test:single 
関連する問題