-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
87 lines (87 loc) · 2.82 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
notifications:
email: false
git:
quiet: true
depth: false
env:
global:
- TERM=dumb
language: java
jdk: openjdk8
python: 3.7
addons:
apt:
update: true
packages:
- bash
- sudo
- lsof
- wget
- curl
- unzip
- python3-pip
install: true
before_install:
- mkdir -p ~/.local/bin
- export PATH=$HOME/.local/bin:$PATH
- pip3 install --user --upgrade pip setuptools
- pip install --user --upgrade httpie
- |
if [ ! -f ~/.local/daggerok/bash-functions/master/main.bash ] ; then
mkdir -p ~/.local/daggerok/bash-functions/master ;
curl -s https://raw.githubusercontent.com/daggerok/bash-functions/master/main.bash > ~/.local/daggerok/bash-functions/master/main.bash ;
fi ;
source ~/.local/daggerok/bash-functions/master/main.bash ;
- stop_any 80 8080 5672 5432 27017 >/dev/null
jobs:
include:
- stage: test
jdk: openjdk8
name: Maven build (openjdk8)
script:
- cp -Rf $TRAVIS_BUILD_DIR/src/main/resources/logback-maven.xml $TRAVIS_BUILD_DIR/src/main/resources/logback.xml
- cd $TRAVIS_BUILD_DIR && ./mvnw -U
- stage: test
jdk: openjdk8
name: Maven updates (openjdk8)
script: cd $TRAVIS_BUILD_DIR && ./mvnw versions:display-property-updates -U
- stage: test
jdk: openjdk8
name: Gradle build (openjdk8)
script:
- cp -Rf $TRAVIS_BUILD_DIR/src/main/resources/logback-gradle.xml $TRAVIS_BUILD_DIR/src/main/resources/logback.xml
- cd $TRAVIS_BUILD_DIR && ./gradlew
- stage: test
jdk: openjdk8
name: Gradle updates (openjdk8)
script: cd $TRAVIS_BUILD_DIR && ./gradlew dependencyUpdates -Drevision=release
- stage: test
jdk: openjdk11
name: Maven build (openjdk11)
script:
- cp -Rf $TRAVIS_BUILD_DIR/src/main/resources/logback-maven.xml $TRAVIS_BUILD_DIR/src/main/resources/logback.xml
- cd $TRAVIS_BUILD_DIR && ./mvnw -U
- stage: test
jdk: openjdk11
name: Maven updates (openjdk11)
script:
- cd $TRAVIS_BUILD_DIR && ./mvnw versions:display-parent-updates versions:display-dependency-updates versions:display-property-updates -U >/dev/null
- cd $TRAVIS_BUILD_DIR && ./mvnw versions:display-parent-updates versions:display-dependency-updates versions:display-property-updates
- stage: test
jdk: openjdk11
name: Gradle build (openjdk11)
script:
- cp -Rf $TRAVIS_BUILD_DIR/src/main/resources/logback-gradle.xml $TRAVIS_BUILD_DIR/src/main/resources/logback.xml
- cd $TRAVIS_BUILD_DIR && ./gradlew
- stage: test
jdk: openjdk11
name: Gradle updates (openjdk11)
script: cd $TRAVIS_BUILD_DIR && ./gradlew dependencyUpdates -Drevision=release
cache:
pip: true
packages: true
directories:
- ~/.local/daggerok
- ~/.docker
- ~/.gradle
- ~/.m2