File tree Expand file tree Collapse file tree 1 file changed +80
-0
lines changed Expand file tree Collapse file tree 1 file changed +80
-0
lines changed Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ source etc/setenv.sh
4+
5+ function composeUp() {
6+ ./mvnw docker-compose:up
7+ }
8+
9+ function composeDown() {
10+ ./mvnw docker-compose:down
11+ }
12+
13+ function runDev() {
14+ ./mvnw
15+ }
16+
17+ function runTest() {
18+ ./mvnw -B -DskipTests=false clean dependency:list install --file pom.xml
19+ }
20+
21+ function runGithubTestBuild() {
22+ ./mvnw -B -DskipTests clean dependency:list install --file pom.xml
23+ }
24+
25+ function setupHeroku() {
26+ heroku login
27+ heroku ps -a simpleworklist
28+ }
29+
30+ function buildLikeHerokuWithSite() {
31+ ./mvnw -DskipTests=true clean dependency:list install site site:deploy
32+ }
33+
34+ function buildLikeHeroku() {
35+ ./mvnw -DskipTests clean dependency:list install
36+ }
37+
38+ function runHerokuLocal() {
39+ buildLikeHeroku
40+ heroku ps -a simpleworklist
41+ heroku local web
42+ heroku open
43+ }
44+
45+ function setup() {
46+ setupHeroku
47+ }
48+
49+ function build() {
50+ buildLikeHerokuWithSite
51+ # buildLikeHeroku
52+ # runGithubTestBuild
53+ }
54+
55+ function testing() {
56+ runTest
57+ }
58+
59+ function run() {
60+ # runHerokuLocal
61+ runDev
62+ }
63+
64+ function release() {
65+ ./mvnw -B -DskipTests release:prepare && ./mvnw -B -DskipTests release:perform && ./mvnw -B -DskipTests release:clean
66+ }
67+
68+ function firstSetup() {
69+ ./mvnw clean install site -DskipTests=true
70+ }
71+
72+ function main() {
73+ # #release
74+ # build
75+ # run
76+ firstSetup
77+ }
78+
79+ main
80+
You can’t perform that action at this time.
0 commit comments