forked from igniterealtime/Openfire
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
45 lines (45 loc) · 2.21 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
dist: trusty
sudo: false
language: java
addons:
hostname: example.org
hosts:
- example.org
jdk:
- oraclejdk8
- openjdk11
cache:
directories:
- $HOME/.m2/repository/
before_install:
# Need newer python than provided by trusty
- sudo add-apt-repository -y ppa:deadsnakes/ppa
- sudo apt-get update
- sudo apt install python3.6
- curl https://bootstrap.pypa.io/get-pip.py | sudo python3.6
- git clone --depth 1 https://github.com/igniterealtime/ci-tooling.git target/ci-tooling
- cp target/ci-tooling/maven-settings-for-openfire-plugins.xml $HOME/.m2/settings.xml
before_script:
- gem install travis
script:
- mvn verify -P ci
- JAVAC_MAJOR_VERSION=$(javac -version | sed -E 's/javac ([[:digit:]]+).*/\1/')
- if [[ ${JAVAC_MAJOR_VERSION} -gt 8 ]]; then ./runIntegrationTests -gl ; fi
- TERM="dumb" ./runAioxmppIntegrationTests -l
install: true
deploy:
provider: script
script: if [ "$TRAVIS_REPO_SLUG" = "igniterealtime/Openfire" ]; then mvn deploy --settings target/ci-tooling/maven-settings-for-openfire-plugins.xml -P ci; else echo "Skip deploy"; fi
skip_cleanup: true
on:
repo: igniterealtime/Openfire
all_branches: true
after_deploy:
- curl -LO https://raw.github.com/igniterealtime/ci-tooling/master/trigger-travis.sh
- chmod +x trigger-travis.sh
- DOWNSTREAM="bookmarks callbackOnOffline candy certificateManager clientControl contentFilter dbaccess emailListener emailOnAway externalservicediscovery fastpath gojara hazelcast httpFileUpload inverse jingleNodes jmxweb justmarried loadStats monitoring motd mucservice nodejs nonSaslAuthentication packetFilter presence registration restAPI search sip stunserver subscription tikitoken userCreation userImportExport userservice userStatus xmldebugger"
- for pluginname in $DOWNSTREAM; do sleep 1; ./trigger-travis.sh igniterealtime openfire-$pluginname-plugin $TRAVIS_ACCESS_TOKEN; done;
env:
global:
- secure: LNW7mcZ0HOXVXQ9r3h9CgMYVHqCleyC8Mbffl6iDOi3Z/McJUqjvAsop16RRPhgBiVePt1Y9pqZnWjm4jBHacttsH8m5p22T/XMW3T3/J1ovJUK5L/hvhXpVMH8GXTp3dk+Wsylh/39cmgW59TRmkFUXM2FbDpyJdAJqNaSreW0=
- secure: iUybxreNImeViBr3vofRatXhC7nYra5AyKVJTuJ1lQvljbFu+5WCXmZbPpPK4bxANCyaQC5Ny+QtqZrCgrD392CXKCk9K24kbQGLLX1jCcApF4EY3l/5LQwjMgCLgmqynkzmZC6AzYm+/ESXmrZcsnxa5g7FCFd6wvVAV+Y/K/M=