我在CodeShip Pro中具有以下步骤文件:
- type: parallel
name: example_parallel_step
steps:
- service: codeship_example
command: printenv
- service: codeship_example
command: /bin/bash -c 'ls && echo ${CI_BUILD_ID}'
- service: codeship_example
command: /bin/bash -c "lein kaocha unit-cljs"
- name: example_tagged_step
tag: master
service: codeship_example
command: echo "Deploy here!"
注意其中的lein kaocha unit-cljs
命令。
但是,此命令无法运行。我收到了代码船步骤错误:
'kaocha' is not a task. See 'lein help'.
但是,在我的本地docker容器中,该命令确实按预期运行,因为在我的project.clj中,我有一个别名:
:aliases {"kaocha" ["with-profile" "+kaocha" "run" "-m" "kaocha.runner"]}
和个人资料:
:kaocha {:dependencies [[lambdaisland/kaocha "1.0.632"]
[lambdaisland/kaocha-cljs "0.0-71"]]}
为什么会这样?