-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
59 lines (59 loc) · 1.44 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
notifications:
email: false
git:
quiet: true
depth: false
language: java
jdk: openjdk11
python: 3.7
matrix:
include:
- python: 3.7
addons:
apt:
update: false
packages:
- curl
- python3-setuptools
- python3-pip
install: true
before_install:
- 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 ${HOME}/.local/daggerok/bash-functions/master/main.bash
- stop_any 80 5432 8080 6551
#
- export PATH=$HOME/.local/bin:$PATH
- pip3 install --user --upgrade pip
- pip install --user --upgrade httpie
env:
global:
- TERM=dumb
jobs:
include:
- stage: test
jdk: openjdk11
name: test
script: cd $TRAVIS_BUILD_DIR && ./mvnw
# - stage: test
# jdk: openjdk11
# name: integration test
# script:
# - cd $TRAVIS_BUILD_DIR
# - ./mvnw >/dev/null
# - echo 'workaround is target/classes/templates'
# - mkdir -p target/classes
# - cp -Rf src/main/resources/templates ./target/classes/
# - java -jar target/*.jar &
# - wait_for 8080 9000
# - sleep 15s
# - http :9000
# - stop_any 8080 9000
cache:
pip: true
packages: true
directories:
- ~/.local/daggerok
- ~/.m2