-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy path.travis.yml
83 lines (79 loc) · 5.15 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
language: groovy
install:
# Secrets (including encrypted PGP key) are not available in PR builds - skip release configuration to do not fail build
# Also skip on MacOS as there is problem with gpg1 and secring.gpg
- |
if [[ "$TRAVIS_SECURE_ENV_VARS" == "true" && "$TRAVIS_OS_NAME" == "linux" ]]; then
# There is problem with aborting build on command in if failure - http://steven.casagrande.io/articles/travis-ci-and-if-statements/
openssl aes-256-cbc -K $encrypted_21cd6bba12a0_key -iv $encrypted_21cd6bba12a0_iv -in gradle/gpg-key.asc.enc -d | gpg --fast-import || travis_terminate 1
# Environment variables cannot have "." and it's problematic to pass them with "ORG_GRADLE_PROJECT_"
# In addition GRADLE_OPTS doesn't seem to be passed to Gradle started with Nebula (for AT/E2E tests)
mkdir -p ~/.gradle
echo "signing.keyIdAT=0694F057" >> ~/.gradle/gradle.properties
echo "signing.secretKeyRingFileAT=$HOME/.gnupg/secring.gpg" >> ~/.gradle/gradle.properties
echo "signing.passwordAT=" >> ~/.gradle/gradle.properties
# Enable E2E tests if desired in given build variant and not in PR - #56
# Setting environment variables in "env" seems to be too primite to support it inline
if [ "$NEXUS_AT_ENABLE_E2E_TESTS_IN_VARIANT" == "true" ]; then export NEXUS_AT_ENABLE_E2E_TESTS=true; fi;
# regular releasing (not AT/E2E)
export GRADLE_OPTS='-Dorg.gradle.project.signing.keyId=0694F057 -Dorg.gradle.project.signing.secretKeyRingFile=$HOME/.gnupg/secring.gpg -Dorg.gradle.project.signing.password= -Dorg.gradle.project.gradle.publish.key=$PLUGIN_PORTAL_API_KEY -Dorg.gradle.project.gradle.publish.secret=$PLUGIN_PORTAL_API_SECRET'
fi;
- "export TRAVIS_COMMIT_MSG=$(git log --format=%B -n 1 $TRAVIS_COMMIT)"
- git config user.email "[email protected]"
- git config user.name "Codearte Continuous Delivery Bot"
# Chandler for release notes synchronization
- ruby --version
- rvm install 2.4.1
- ruby --version
- gem install --no-document chandler -v 0.7.0
script:
- ./gradlew assemble -s
# Temporarily disable animal sniffer due to: https://github.com/mojohaus/animal-sniffer/issues/76
- ./gradlew prepareForCiBuild -s -i -Prelease.disableChecks && ./gradlew funcTest ciBuild -s -i -PcompatibilityDISABLED -Prelease.disableChecks -PpluginPortal -PchangelogSync
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
- rm -fr $HOME/.gradle/caches/*/scripts/
- rm -fr $HOME/.gradle/caches/*/scripts-remapped/
- rm -fr $HOME/.gradle/caches/*/fileHashes/
- rm -f $HOME/.gradle/caches/*/fileContent/*.lock
- rm -f $HOME/.gradle/caches/*/javaCompile/*.lock
- rm -f $HOME/.gradle/caches/*/executionHistory/*.lock
- rm -f $HOME/.gradle/caches/*/generated-gradle-jars/*.lock
- rm -f $HOME/.gradle/caches/transforms-1/transforms-1.lock
- rm -f $HOME/.gradle/caches/journal-1/file-access.bin
- rm -f $HOME/.gradle/caches/journal-1/*.lock
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
- $HOME/.rvm/
env:
global:
- secure: g95pWjS+RIusyf6t26YnH/HhL6j7aQb3nUpiF0i+9eumn1sT2g8c8X9bdDrncXetAs0+I50cP7jER2IDBG67wbqE2LD2TbCPMA/hJIqtWTatjKT1dUjVL4mxtZ7GsbHZyRM9nUbtOqBBaL+DqzkecO8lHMKB5nej7NdkFT1JO6c=
- secure: dgqSFhIO5JuL6X2HgKt7RJLacl+MSZK4VV9710W0NolPAZlurSgg1vVeoI/4XFpdnt5KSfDUTZL2XS8kU5OgXMqTQcltXusk4fop21m1Z9X3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nG7U1AVBaZjFdi+kYNhSALdWUmbZjcdogINgJMmezbqdL+tPOXEKaA=
matrix:
include:
- os: linux
jdk: openjdk8
env: NEXUS_AT_ENABLE_E2E_TESTS_IN_VARIANT=true
- os: linux
jdk: openjdk11
env: SKIP_RELEASE=true NEXUS_AT_ENABLE_E2E_TESTS_IN_VARIANT=true
- os: linux
jdk: openjdk15
env: SKIP_RELEASE=true
- os: linux
env: SKIP_RELEASE=true JDK="OpenJ9 11"
before_install:
- . gradle/install-jdk.sh -W ~/custom-java --url "https://api.adoptopenjdk.net/v2/binary/releases/openjdk11?openjdk_impl=openj9&os=linux&arch=x64&release=latest&type=jdk&heap_size=normal"
- ./gradlew --version
- os: osx
jdk: openjdk11
env: SKIP_RELEASE=true