3
我第一次玩travis-ci,遇到了令我困惑的錯誤。我無法理解我的Travis版本出了什麼問題
下面是我的.travis.yml,它在驗證時被驗證。
language: node_js
node_js:
- 0.8
after_script:
- echo "Hello World"
以下是我的特拉維斯建立輸出:
$ git clone --depth=50 --branch=master git://github.com/iancrowther/travis-experiment.git iancrowther/travis-experiment
Cloning into 'iancrowther/travis-experiment'...
remote: Counting objects: 27, done.
remote: Compressing objects: 100% (21/21), done.
remote: Total 27 (delta 2), reused 20 (delta 0)
Receiving objects: 100% (27/27), done.
Resolving deltas: 100% (2/2), done.
$ cd iancrowther/travis-experiment
git.2
$ git checkout -qf xxx
$ nvm use 0.8
Now using node v0.8.22
$ node --version
v0.8.22
$ npm --version
1.2.14
$ make test
make: *** No rule to make target `test'. Stop.
The command "make test" exited with 2.
after_script
$ echo "Hello World"
Hello World
Done. Your build exited with 1.
如何防止make文件執行?
任何幫助將是巨大的,我似乎無法IND在doc的
伊恩
PS解釋的錯誤。有沒有人有任何關於造型代碼的指南?
UPDATE 當@user重新格式化的問題,他們增加了以下評論:「使用{}鍵,使代碼可見」。
太棒了,這工作如上所述。這個解釋很清楚,非常感謝@User – iancrowther