This repository has been archived by the owner on Nov 18, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
basic circleci build integration (#19)
* added basic circleci build * added wildfly job * fixed wildfly steps * fixed wildfly steps (v2) * added wildfly build dependency * fixed build job * fixed build job (v2) * removed all caching * added x flag to gradlew * adapted wildfly command * added ps aux step * fixed ps aux * added nmap * changed nmap params * added sleeps; gradle deploy; curl * start wildfly image manually * adapted to use circleci machine * added mgmnt user creation * added 8080 mapping * added verify task
- Loading branch information
1 parent
24f42de
commit 20b2208
Showing
5 changed files
with
68 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
version: 2 | ||
jobs: | ||
build: | ||
docker: | ||
- image: circleci/openjdk:8-jdk | ||
working_directory: ~/repo | ||
environment: | ||
JVM_OPTS: -Xmx3200m | ||
TERM: dumb | ||
steps: | ||
- checkout | ||
- run: ./gradlew dependencies | ||
- run: ./gradlew build | ||
- run: ./gradlew publishToMavenLocal | ||
wildfly: | ||
machine: true | ||
steps: | ||
- checkout | ||
- run: docker run --name wildfly --rm -d -p 8080:8080 -p 9990:9990 jboss/wildfly:16.0.0.Final /opt/jboss/wildfly/bin/standalone.sh -b 0.0.0.0 -bmanagement 0.0.0.0 | ||
- run: sleep 10 | ||
- run: docker exec wildfly /opt/jboss/wildfly/bin/add-user.sh mgmt 1234 | ||
- run: ps aux | ||
- run: | | ||
./gradlew build publishToMavenLocal | ||
cd integration | ||
./gradlew clean deploy verify --no-build-cache --info && echo "build.id:" && cat build.id && echo && echo "curl:" && curl localhost:8080/integration-1/rest/id && echo | ||
sleep 10 | ||
./gradlew | ||
workflows: | ||
version: 2 | ||
all: | ||
jobs: | ||
- build | ||
- wildfly: | ||
requires: | ||
- build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters