-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
68 lines (68 loc) · 1.81 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
cache:
directories:
- ~/.g*
- ~/.m*
- ~/.n*
- node_modules
- gitbook/node_modules
service: docker
env:
global:
- TERM=dumb
language: java
jdk: openjdk8
python: 3.8
install: true
addons:
apt:
update: true
packages:
- jq
- curl
- httpie
- docker-ce
- libxml2-utils
before_install:
- 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
jobs:
include:
- stage: test
name: xml-message
script:
- cd $TRAVIS_BUILD_DIR/xml-channel && ./mvnw
- bash $TRAVIS_BUILD_DIR/xml-channel/target/*.jar &
- wait_for 8080
- http :8080
- http :8080 message=message\ builder\ hello
- http :8080/generic message=generic\ message\ hello
- stop_any 8080 8000 80
## all that next shit just stopped working after some time...
#- stage: test
# name: gitbook
# script:
# - ./gradlew clean gitbook
#- stage: test
# name: spring-integration-5-example-01
# script:
# - cd $TRAVIS_BUILD_DIR/spring-integration-5-example-01 && ./gradlew clean build
# - sudo mkdir -p /var/app
# - sudo mv -f $TRAVIS_BUILD_DIR/spring-integration-5-example-01/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 5s
# - sudo service 01 stop
#- stage: test
# name: others
# script:
# - >
# for path in \
# xml-message \
# xml-hello \
# xml-starter \
# spring-integration-5-example-02 \
# ; do
# cd $TRAVIS_BUILD_DIR/$path && ./gradlew clean build
# done;