Play framework 2.0 continuous integration setup

前端 未结 4 2042
情深已故
情深已故 2021-01-30 22:43

I am looking for ideas for a Play 2.0 continuous integration setup. It would contain typical jobs like build after a git push, nightly builds with deployment to a test Heroku in

4条回答
  •  梦毁少年i
    2021-01-30 23:36

    You actually don't even need to use the SBT Plugin. I am running Play 2.1.1 on Jenkins and simply use the Execute Shell. I run something like the following:

    cd ./your-play-project-root
    play clean compile test stage
    exit
    

    This works quite well. "play" is simply just a thin wrapper around sbt.

    "stage" will create a runnable in your target/server directory. Then, you can simply shell again to actually start your play application!

提交回复
热议问题