-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
58 additions
and
63 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 |
---|---|---|
@@ -1,65 +1,54 @@ | ||
group: edge | ||
dist: trusty | ||
|
||
service: | ||
- docker | ||
group: trusty_lts | ||
env: | ||
global: | ||
TERM=dumb | ||
|
||
language: java | ||
jdk: | ||
- openjdk8 | ||
- oraclejdk8 | ||
|
||
install: true | ||
before_install: | ||
|
||
# install docker-compose | ||
- sudo apt update | ||
- sudo apt install -y python-pip curl jq libxml2-utils | ||
- sudo pip install docker-compose httpie | ||
- sudo usermod -aG docker $(whoami) | ||
|
||
# kill whatever punning on postgres / rabbitmq port | ||
- sudo kill $(sudo lsof -t -i:5432) | true | ||
- sudo kill $(sudo lsof -t -i:5672) | true | ||
- sudo kill $(sudo lsof -t -i:27017) | true | ||
|
||
# install docker-compose | ||
- sudo apt update -y || true | ||
- sudo apt install -y --no-install-recommends docker-ce python-pip curl jq libxml2-utils | ||
- sudo pip install docker-compose httpie | ||
# kill on ports | ||
- source <(curl -s https://raw.githubusercontent.com/daggerok/bash-functions/master/main.bash) | ||
- stop_any 5432 5672 27017 3000 8000 8080 80 27017 5672 5432 | ||
script: | ||
## gitbbok | ||
#- bash gradlew buildDocs | ||
|
||
# all | ||
- export ROOT=$PWD | ||
- > | ||
for path in \ | ||
spring-integration-5-example-02 \ | ||
spring-integration-5-example-01 \ | ||
; do | ||
export TARGET="$ROOT/$path" | ||
cd $TARGET | ||
bash gradlew clean build | ||
done; | ||
# 01 e2e | ||
- cd $ROOT/spring-integration-5-example-01 | ||
- bash gradlew clean build | ||
- sudo mkdir -p /var/app | ||
- sudo mv -f ./build/libs/*.jar /var/app/01.jar | ||
- sudo ln -s /var/app/01.jar /etc/init.d/01 | ||
- sudo service 01 start | ||
- sleep 15 | ||
- curl localhost:8080/sse & | ||
- sleep 1 | ||
- sudo service 01 stop | ||
- export ROOT=$PWD | ||
## gitbbok | ||
- cd $ROOT/gitbbok | ||
- bash gradlew clean buildDocs | ||
# all | ||
- > | ||
for path in \ | ||
spring-integration-5-example-02 \ | ||
spring-integration-5-example-01 \ | ||
; do | ||
export TARGET="$ROOT/$path" | ||
cd $TARGET | ||
bash gradlew clean build | ||
done; | ||
# 01 e2e | ||
- cd $ROOT/spring-integration-5-example-01 | ||
- bash gradlew clean build | ||
- sudo mkdir -p /var/app | ||
- sudo mv -f ./build/libs/*.jar /var/app/01.jar | ||
- sudo ln -s /var/app/01.jar /etc/init.d/01 | ||
- sudo service 01 start | ||
- sleep 15 | ||
- curl localhost:8080/sse & | ||
- sleep 1 | ||
- sudo service 01 stop | ||
|
||
after_script: | ||
- bash gradlew --stop | ||
|
||
before_cache: | ||
- rm -rf $HOME/.gradle/caches/modules-2/modules-2.lock | ||
- rm -rf $HOME/.gradle/caches/*/plugin-resolution/ | ||
- bash gradlew --stop | ||
|
||
cache: | ||
directories: | ||
- docs/ | ||
- gitbook/node_modules/ | ||
- docs/ | ||
- gitbook/node_modules/ |
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
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
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
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
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
Binary file not shown.
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