-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
109 lines (109 loc) · 4.78 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
env:
global:
- TERM=dumb
notifications:
email: false
git:
quiet: true
depth: false
language: java
jdk: openjdk8
python: 3.7
os: linux
arch: amd64
install: true
services: docker
addons:
apt:
update: true
packages:
- curl
- python3-pip
- libhsdis0-fcml
- docker-ce
before_install:
- export PATH=$HOME/.local/bin:$PATH
- pip3 install --user --upgrade pip setuptools
- pip install --user --upgrade docker-compose httpie
- docker-compose version
- |
if [ ! -f ${HOME}/.local/daggerok/bash-functions/master/main.bash ] ; then
mkdir -p ${HOME}/.local/daggerok/bash-functions/master
curl -s https://raw.githubusercontent.com/daggerok/bash-functions/master/main.bash > ${HOME}/.local/daggerok/bash-functions/master/main.bash
fi
source ~/.local/daggerok/bash-functions/master/main.bash
- stop_any 80 1234 8080 5432
- ulimit -c unlimited
jobs:
include:
- stage: test
name: voting
script:
- cd $TRAVIS_BUILD_DIR/voting && ./sbtw clean h2FileInit "runMain com.github.daggerok.akka.Main"
- cd $TRAVIS_BUILD_DIR/voting && ./sbtw h2FileNext "runMain com.github.daggerok.akka.Main"
- stage: test
name: graceful-shutdown
script:
- cd $TRAVIS_BUILD_DIR/graceful-shutdown && ./sbtw clean h2FileInit "runMain com.github.daggerok.akka.Main"
- cd $TRAVIS_BUILD_DIR/graceful-shutdown && ./sbtw h2FileNext "runMain com.github.daggerok.akka.Main"
- stage: test
name: persist-all
script:
- cd $TRAVIS_BUILD_DIR/persist-all && ./sbtw clean h2FileInit "runMain com.github.daggerok.akka.Main"
- cd $TRAVIS_BUILD_DIR/persist-all && ./sbtw h2FileNext "runMain com.github.daggerok.akka.Main"
- stage: test
name: akka-persistence-h2-starter h2FileNext
script:
- cd $TRAVIS_BUILD_DIR/akka-persistence-h2-starter && ./sbtw clean h2FileInit "runMain com.github.daggerok.akka.Main"
- cd $TRAVIS_BUILD_DIR/akka-persistence-h2-starter && ./sbtw h2FileNext "runMain com.github.daggerok.akka.Main"
- stage: test
name: akka-persistence-h2-starter h2FileInit
script: cd $TRAVIS_BUILD_DIR/akka-persistence-h2-starter && ./sbtw clean h2FileInit "runMain com.github.daggerok.akka.Main"
- stage: test
name: akka-persistence-h2-starter h2Mem
script: cd $TRAVIS_BUILD_DIR/akka-persistence-h2-starter && ./sbtw clean h2Mem "runMain com.github.daggerok.akka.Main"
- stage: test
name: akka-persistence-h2-starter stateful file
script:
- cd $TRAVIS_BUILD_DIR/akka-persistence-h2-starter
- cp -Rf ./src/main/resources/application-file-init.conf ./src/main/resources/application.conf
- ./sbtw clean "runMain com.github.daggerok.akka.Main"
- cp -Rf ./src/main/resources/application-file-next.conf ./src/main/resources/application.conf
- ./sbtw "runMain com.github.daggerok.akka.Main"
- stage: test
name: akka-persistence-h2-starter stateless file
script:
- cp -Rf $TRAVIS_BUILD_DIR/akka-persistence-h2-starter/src/main/resources/application-file-init.conf $TRAVIS_BUILD_DIR/akka-persistence-h2-starter/src/main/resources/application.conf
- cd $TRAVIS_BUILD_DIR/akka-persistence-h2-starter && ./sbtw "runMain com.github.daggerok.akka.Main"
- stage: test
name: akka-persistence-h2-starter stateless mem
script:
- cp -Rf $TRAVIS_BUILD_DIR/akka-persistence-h2-starter/src/main/resources/application-mem.conf $TRAVIS_BUILD_DIR/akka-persistence-h2-starter/src/main/resources/application.conf
- cd $TRAVIS_BUILD_DIR/akka-persistence-h2-starter && ./sbtw "runMain com.github.daggerok.akka.Main"
- stage: test
name: akka-persistence-starter
script: cd $TRAVIS_BUILD_DIR/akka-persistence-starter && ./sbtw "runMain com.github.daggerok.akka.Main"
- stage: test
name: akka-persistence-postgres-starter
script:
- cd $TRAVIS_BUILD_DIR/akka-persistence-postgres-starter && ./sbtw "dockerComposeRestart skipPull" "runMain com.github.daggerok.akka.Main"
- cd $TRAVIS_BUILD_DIR/akka-persistence-postgres-starter && ./sbtw "runMain com.github.daggerok.akka.Main" dockerComposeStop
- stage: test
name: akka-typed-starter AkkaActorTyped
script: cd $TRAVIS_BUILD_DIR/akka-typed-starter && ./sbtw clean "runMain com.github.daggerok.akka.AkkaActorTyped"
- stage: test
name: akka-typed-starter AskPattern
script: cd $TRAVIS_BUILD_DIR/akka-typed-starter && ./sbtw clean package "runMain com.github.daggerok.akka.AskPattern"
- stage: test
name: akka-typed-starter build
script: cd $TRAVIS_BUILD_DIR/akka-typed-starter && ./sbtw clean package
cache:
pip: true
packages: true
directories:
- $HOME/.m2
- $HOME/.sbt
- $HOME/.ivy
- $HOME/.gradle
- $HOME/.docker
- $HOME/.local/daggerok