#!/bin/bash
set -ev

# generate project
cd "$HOME"/app
npm link generator-jhipster
yo jhipster --force --no-insight

# generate entities
for f in `ls .jhipster` do yo jhipster:entity ${f%.*} --force ; done
for f in `ls *.jh *.jdl` do yo jhipster:import-jdl ${f%.*} --force ; done

ls -al "$HOME"/app/

# launch tests
./mvnw clean
./mvnw test
gulp test
gulp eslint
docker-compose -f src/main/docker/mysql.yml up -d
sleep 20
./mvnw clean package -Pprod -DskipTest
java -jar target/*.war &
sleep 120

#!/bin/bash
set -ev

# generate project
cd "$HOME"/app
npm link generator-jhipster
yo jhipster --force --no-insight

# generate entities
for f in `ls .jhipster` ; do yo jhipster:entity ${f%.*} --force ; done
for f in `ls *.jh *.jdl` ; do yo jhipster:import-jdl ${f%} --force ; done

ls -al "$HOME"/app/

# launch tests
./mvnw clean
./mvnw test
gulp test
gulp eslint
docker-compose -f src/main/docker/mysql.yml up -d
sleep 20
./mvnw clean package -Pprod -DskipTest
java -jar target/*.war &
sleep 120

Fix syntax when generating entities
Fix syntax when generating entities
