-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
62 lines (61 loc) · 5.01 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
language: groovy
dist: bionic
#jdk: openjdk12
before_install:
- "[[ -d /home/travis/.sdkman/ ]] && [[ -d /home/travis/.sdkman/bin/ ]] || rm -rf /home/travis/.sdkman/"
- curl -sL "https://get.sdkman.io" | bash
- echo sdkman_auto_answer=true > $HOME/.sdkman/etc/config
- echo sdkman_auto_selfupdate=true >> $HOME/.sdkman/etc/config
- source "$HOME/.sdkman/bin/sdkman-init.sh"
- sdk version
install:
# Handle java already installed
- sdk install java 12.0.2-open || true
- unset _JAVA_OPTIONS
- unset JAVA_HOME
- java -Xmx32m -version
stages:
- unit test
- integration test
- functional test
# In the below config travis has an interesting configuration
# if no `script:` element provided after the stage then the stage's first step will be to execute the standard "check"
# Therefore each stage must provide a plain `script:` element, and then any further script: elements can either be provided in the same manner
# or as a list element `- script:`
jobs:
include:
- stage: unit test
name: "Common"
script: "./gradlew :mdm-common:test"
- script: "cd mdm-core && ./grailsw test-app -unit"
name: "Core"
- script: "cd mdm-plugin-email-proxy && ./grailsw test-app -unit"
name: "Plugin Email Proxy"
- stage: integration test
name: "Core"
script: "cd mdm-core && ./grailsw -Dgradle.integrationTest=true test-app -integration"
- script: "cd mdm-plugin-email-proxy && ./grailsw -Dgradle.integrationTest=true test-app -integration"
name: "Plugin Email Proxy"
- stage: functional test
name: "Core"
script: "cd mdm-core && ./grailsw -Dgradle.functionalTest=true test-app -integration"
- script: "cd mdm-plugin-email-proxy && ./grailsw -Dgradle.integrationTest=true test-app -integration"
name: "Plugin Email Proxy"
after_failure:
- "cd $TRAVIS_BUILD_DIR && ./gradlew publish"
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- "$HOME/.gradle/caches/"
- "$HOME/.gradle/wrapper/"
- "$HOME/.sdkman"
notifications:
slack:
secure: V6KfisLk9ss/l3l1Nde4ck64Wqcyuy1vQj0C9JGJJOf/KmNemDAgpc8lUzbC7PrC9u/oZI5JXXyEY10xAfade04QVJEfNaPYRTBG/KnAkkKPC2NrYFOXMqbno3xtLp6XDhCfJmjJ45fwuwjapf4dvZkGy6N6GL+QPc/MxK2Pbzan0zAeHwyj1o2M0PqxQEICbEcgVywExKreCSb9pTSns++bBHJitYffosOBgHg3rRINx4U1SoYkIvb1nlx9qTWZHkIXlqzMOgwa8yBMUlEO3s9/61M7NNnb/SgAXQVe//oCjSh8mdB4gIgGjSbUpXUBjKO0j94GepZ1OBWCqoUhvM27tebTmtLtY/hTzxEPjA41NFR1/xQCT97mhDfiiPU3i1J0jn/hTrcBXeffBAe6BgfCY/KMacl5zWwa2oycswuEhN/1krrRswGMMkh+qsS1VdJUUdsYDzbm/qXl4rGjYAB02dDvMJfCUEC1p8QPfStd6Gq7f3KAXU55ExkMMj8RIKmTfQvnvdCteFhERV0Ipy7qwobr/d5bxiLk8S7D7TwS0REmVYt/cDX1vhYl4x7QdoYQDJzXkZAv9XH4oL3riu7EeDeM7dyJwFKbQzgHlfypog6keIB6A1gcgU2zwkAQ6K6QcWhDBlkqkM0YzpI1lxnA5nu9aiI0Eh0S668ls4M=
env:
global:
- secure: "cRjkZ7AWD2QnqEh3eakOaq9/vQzx8smM3ob4jbk8Gnpx6lM+OBZNTKNCgQS3HyPmr6qmHJAE1t7Ze9JLo9jZ9AkhJZtKPwj2c4YRga6i9wmi+vAQq/DjbrNcbGVC0YMNmcKMwsv7sgR8f4/ubQo0klOgE2b5iryZ+g4Svdk07P0+eZpgw8NxRx+ldedueKvVyLJwuAJQTwf/xORE56IFSCUt1k1G+YovmC8i0aPFTE5r1nrts3EgFoATMKkynZBb/78FMscvvN1hHtslUE909Vsw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