1
我有一個3個項目的bitbucket存儲庫。如何配置可發佈以從單個存儲庫構建所有項目?
myRepo APP1(紅寶石上軌) APP 2(node.js的) APP3(node.js的)
現在我想用這個倉庫配置可發送(https://app.shippable.com/)打造這一切3項目並運行所有測試。
我知道我應該在庫的根配置shippable.yml文件,到目前爲止,我的運氣一定的點我有什麼,你可以在這裏看到...達到
language: ruby
rvm:
- 2.2.2
env:
- CI_REPORTS=shippable/testresults COVERAGE_REPORTS=shippable/codecoverage
before_script:
- cd app1 && mkdir -p shippable/testresults
- bundle install
- mvn build
script:
- rake db:setup
- cd ../app2 && mvn build
- cd ../app3 && mvn build
我問題是如何正確地做到這一點?
到目前爲止,我試圖做這樣的事情,但沒有運氣。
現在用這個腳本我得到這個錯誤。
mvn build
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.146 s
[INFO] Finished at: 2015-11-21T22:32:28+00:00
[INFO] Final Memory: 14M/965M
[INFO] ------------------------------------------------------------------------
[ERROR] The goal you specified requires a project to execute but there is no POM in this directory (/home/shippable/workspace/src/bitbucket.org/etibartartu/approot/app1). Please verify you invoked Maven from the correct directory. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MissingProjectException
我想知道如果任何人可以有任何建議如何編寫.yml文件,以使其工作。
Shippable的建築應用程序的正常流程是這樣的。
Clone/Pull the project from Github. This depends on whether the minion is in pristine state or not
cd into the workspace
Checkout the commit that is getting built
Run the before_install section. This is typically used to prep your minion and update any packages
Run install section to install any project specific libraries or packages
Run before_script section to create any folders and unzip files that might be needed for testing. Some users also restore DBs etc. here
Run the script command which runs build and all your tests
Run either after_success or after_failure commands
Run after_script commands