我试图对Travis CI进行protractor-example测试,但它仍然失败。认为这是我的.travis.yml,所以我把它剥了下来......
.travis.yml
language: node_js
node_js:
- "0.10"
script:
- echo "Hello..."
这与我以前的所有尝试一样,结尾如下:
Using worker: worker-linux-5-2.bb.travis-ci.org:travis-linux-2
git.1
0.13s$ git clone --depth=50 --branch=master git://github.com/qualityshepherd/protractor_example.git qualityshepherd/protractor_example
Cloning into 'qualityshepherd/protractor_example'...
remote: Counting objects: 109, done.
remote: Compressing objects: 100% (19/19), done.
remote: Total 109 (delta 7), reused 0 (delta 0)
Receiving objects: 100% (109/109), 15.47 KiB | 0 bytes/s, done.
Resolving deltas: 100% (40/40), done.
Checking connectivity... done.
$ cd qualityshepherd/protractor_example
git.4
$ git checkout -qf 29c4ac38db161b95b5b05b6cb90881d9de2020f6
couchdb stop/waiting
0.55s$ nvm install 0.10
######################################################################## 100.0%
Now using node v0.10.32
0.45s0.02s$ node --version
v0.10.32
0.45s$ npm --version
1.4.28
0.01s$ make test
make: *** No rule to make target `test'. Stop.
The command "make test" exited with 2.
Done. Your build exited with 1.
我不确定为什么它正在运行make
...它永远不会命中我的script
。我做错了什么?
答案 0 :(得分:3)
我认为travis期待某种方式来实际运行集成测试。通过期望Makefile
的{{1}}或与make test
一起使用的package.json
。添加最小npm test
或Makefile
,您应该会遇到此错误。