forked from dita-ot/dita-ot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
61 lines (61 loc) · 2.47 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
sudo: false
language: java
jdk:
- oraclejdk8
env:
global:
- JAVA_OPTS="-Xmx2048M"
- GRADLE_OPTS="-Xmx2048M"
install:
- git submodule update --init --recursive
- "./gradlew"
script:
- "./gradlew check integrationTest e2eTest --info --stacktrace --no-daemon"
after_success:
- "./gradlew dist --stacktrace --no-daemon -Pcommit=${TRAVIS_COMMIT} -Ptag=${TRAVIS_TAG} -PskipGenerateDocs=${SKIP_GENERATE_DOCS}"
notifications:
slack:
secure: IAA4d9O2Dw1hkpY9cwxJz++VMjkgbV3EuaS09DGFujvHl2eQtpKTloE0/CDF+NZA4tcbH1dNqsGw3ETLmrqA581CLpmiiq3LG02cDMoSXZeOKB/9vo6tvLFg0UMawzo+FomJS/hvCmS5KirrFqZQKE5g6SCC05UBM5nwI5d0vOw=
deploy:
# Development distribution package
- provider: s3
access_key_id: AKIAJUF6ATK6SJEUR4XA
secret_access_key:
secure: H1+xHIRiO67xYudQmcvqD58w9ux79fLwKrOh0nCCi2N8fKyeT43L1/r4/F6oVSKoeT9MVgu0bj3XsmErqOw03h47wYvPKGcGDjY4KHj/Ptr9MRTkVkJ43yvVzWvnZWpsl4KlBsUHJGm5Tkb38aQOH9DbOgUiRSwcOused0GoBhQ=
region: eu-west-1
bucket: dita-ot
skip_cleanup: true
local-dir: build/distributions
acl: public_read
on:
repo: dita-ot/dita-ot
branch: develop
# Snapshot Maven publish
- provider: script
script: "openssl aes-256-cbc -K $encrypted_1b8d0aeee504_key -iv $encrypted_1b8d0aeee504_iv -in .travis/24AC15F2.gpg.enc -out .travis/24AC15F2.gpg -d && ./gradlew --no-daemon --info publish -PossrhUsername=$OSSRH_USERNAME -PossrhPassword=$OSSRH_PASSWORD -Psigning.password=$SIGNING_PASSWORD -Psigning.keyId=24AC15F2 -Psigning.secretKeyRingFile=.travis/24AC15F2.gpg"
on:
repo: dita-ot/dita-ot
branch: develop
# Release distribution package upload
- provider: releases
api_key:
secure: d2vveLfRh+KvjkuJtahHB4buR7qpUXZ7ccrmgwALVboh7BhMgZgdX/puHiEzsiS4CX0xNcV2PpdF6VBGsbMg8TAFn5ap5he7y5MnC5Rt9iaJQtMKuoV3GQ1IoZZOUCRswgpjyLOSxuP3HDgyNn44i9eYT5I9N0wkxQzaleho8Og=
skip_cleanup: true
file_glob: true
file: build/distributions/*.zip
on:
tags: true
repo: dita-ot/dita-ot
# Release Maven publish
- provider: script
script: "openssl aes-256-cbc -K $encrypted_1b8d0aeee504_key -iv $encrypted_1b8d0aeee504_iv -in .travis/24AC15F2.gpg.enc -out .travis/24AC15F2.gpg -d && ./gradlew --no-daemon --info publish -PossrhUsername=$OSSRH_USERNAME -PossrhPassword=$OSSRH_PASSWORD -Psigning.password=$SIGNING_PASSWORD -Psigning.keyId=24AC15F2 -Psigning.secretKeyRingFile=.travis/24AC15F2.gpg"
on:
tags: true
repo: dita-ot/dita-ot
# Release registry update
- provider: script
script: bash .travis/registry.sh
skip_cleanup: true
on:
tags: true
repo: dita-ot/dita-ot