78f87104d6
* refactor: Reorder tests without lambda Moves inner implementations of Answer and ArgumentMatcher to the top of the test classes. Also changes the lambda expression to a regular "pre java 8" expression in one of the tests. Resolves: BAEL-632 * feat: Create basic Monolithic JHipster project Commit just after creating a JHipster project, before making any modifications. Resolves: BAEL-137 * chore: Change the artifactId and name of the project From baeldung to jhipster-monolithic and JHipster Monolithic Application Relates to: BAEL-137 * feat: Create entities Post and Comment Relates to: BAEL-137 * feat: Fix Gatling configuration in pom.xml Relates to: BAEL-137 * feat: Add files for Continuous Integration Relates to: BAEL-137 * feat: Change pom.xml to conform to Baeldung standards - moved the <properties> element to the bottom of the file - excluded integration tests in the default surefire configuration - added a new profile, called integration, and added the integration tests there - added Java 8 in the <source> and <target> tags, under maven-compiler solves: BAEL-137 * chore: Add jhipster module to parent pom
57 lines
1.5 KiB
YAML
57 lines
1.5 KiB
YAML
|
|
cache:
|
|
key: "$CI_BUILD_REF_NAME"
|
|
paths:
|
|
- node_modules
|
|
- .maven
|
|
stages:
|
|
- build
|
|
- test
|
|
- package
|
|
|
|
before_script:
|
|
- export MAVEN_USER_HOME=`pwd`/.maven
|
|
- chmod +x mvnw
|
|
- ./mvnw com.github.eirslett:frontend-maven-plugin:install-node-and-npm -DnodeVersion=v6.10.0 -DnpmVersion=4.3.0
|
|
- ./mvnw com.github.eirslett:frontend-maven-plugin:npm
|
|
|
|
maven-build:
|
|
stage: build
|
|
script: ./mvnw compile -Dmaven.repo.local=$MAVEN_USER_HOME
|
|
|
|
maven-test:
|
|
stage: test
|
|
script:
|
|
- ./mvnw test -Dmaven.repo.local=$MAVEN_USER_HOME
|
|
artifacts:
|
|
paths:
|
|
- target/surefire-reports/*
|
|
maven-front-test:
|
|
stage: test
|
|
script:
|
|
- ./mvnw com.github.eirslett:frontend-maven-plugin:npm -Dfrontend.yarn.arguments=test
|
|
artifacts:
|
|
paths:
|
|
- target/test-results/karma/*
|
|
gatling-test:
|
|
stage: test
|
|
allow_failure: true
|
|
script:
|
|
- ./mvnw gatling:execute -Dmaven.repo.local=$MAVEN_USER_HOME
|
|
before_script:
|
|
- export MAVEN_USER_HOME=`pwd`/.maven
|
|
- chmod +x mvnw
|
|
- ./mvnw com.github.eirslett:frontend-maven-plugin:install-node-and-npm -DnodeVersion=v6.10.0 -DnpmVersion=4.3.0
|
|
- ./mvnw com.github.eirslett:frontend-maven-plugin:npm
|
|
- ./mvnw &
|
|
artifacts:
|
|
paths:
|
|
- target/gatling/*
|
|
maven-package:
|
|
stage: package
|
|
script:
|
|
- ./mvnw package -Pprod -DskipTests -Dmaven.repo.local=$MAVEN_USER_HOME
|
|
artifacts:
|
|
paths:
|
|
- target/*.war
|