Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
79 lines (72 sloc) 3.85 KB
dist: xenial
sudo: required
language: java
services:
- docker
- mongodb
env:
global:
- SONATYPE_USERNAME=ph@phloc.com
- secure: "fTjOKaUUUKOSV32XrSLxkT7rV0pJe9IqCam8Oxfs4UB0ykfGWLiCvtvAsbZT8JUr8/EYyH4k/NGus73pn92gM7xkpg4yMuuIMMvDGN7/YpI3Q
PcxhmO+/h9JMqSZZniFuMVtOJsf/YIISmFIKRN82/3tlk9j53PCltOVD+x3T7g3W1jYwlCxpYfsJgBS0Svlwdq2Nawosb/UaSmWe8mpIgpOyu6Z30XTWpVvT
E82gMQvGGpB6yGoS5sACLozenVS+DJlGSvIvzXpZVcqkpf+NJGGadDPX0Cii3hIetirjha3/bDekGOZxbOS/8lCq3R9q3gcdcn3JLqBV9f8FS/5L8A8zz872
Q1/P0w7NEHjP+EsOs/hg/dMRAC7WxoRCY/v8lEOK+ady9Zkz14blqxEAN+YmuMwhakojmoXZYzmFbBL5IMKsJkvM4MRCWP95Om45Z5J8YN264g/3fn7T6H1k
Atyrchr3PhqWwwETaKWcMDTrywRl9KDaL3sXQNpf+u4M6HkMRWciYoMd06sLrZwXhVdT0NYXXVbRT8ieWSXHIOaEnAR94Hcs/pDofv9Ogi0HObxNic9FvFwD
2mTVRW0bORg2EFAvb0oNQBZUV3NKGqeTEHv4PbBb1idlLU1hweNyncjnGppKPSuv36EJb9n/dGoFQTbluByXjkgJ/g/iX4="
- DOCKER_USERNAME=phelger
- secure: "O6MzNHzpMaOcp4Rnwie7mSX27dLs9kdkfH/1QIPmu+XpKsYGh7lmRqV/PvPJKpfMXj3nP+wo3B05pNxO62VMx9c3ZlKmkRGxxnUnQqKS6uNPcKjXfAe8DB7TsrQ27jwNya+Upr8MhIikDVQIPHxq0
KJPT8N3asYI/CpUhbXE9eeDmJow3/5qz57Y2+cA0hrcRZjIocsVqa0Mk2/MWXZ1nAA/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Ya8EFT994n06uAQyOz/ZQ3xLIEHE0IrIg8kTFMhYq1Yx9JTocNc+6f
vVaztY+EpsNIh9mwkO3YjW4KGS3DGKiqJ0uA/tElX0EUNoQ55re8WM="
install:
# - mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V -U -P jdeps
- mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V -U
cache:
directories:
- $HOME/.m2
branches:
only:
- master
jobs:
include:
- stage: test
jdk: openjdk8
script:
- mvn test -B -P coverage sonar:sonar
- docker pull tomcat:9-jre11
# build XML version
- docker build -t phoss-smp-snapshot-from-source-xml -f docker/Dockerfile-snapshot-from-source-xml .
- docker tag phoss-smp-snapshot-from-source-xml phelger/smp:snapshot
# build SQL version
- docker build -t phoss-smp-snapshot-from-source-sql -f docker/Dockerfile-snapshot-from-source-sql .
- docker tag phoss-smp-snapshot-from-source-sql phelger/smp:snapshot-sql
# build MongoDB version
- docker build -t phoss-smp-snapshot-from-source-mongodb -f docker/Dockerfile-snapshot-from-source-mongodb .
- docker tag phoss-smp-snapshot-from-source-mongodb phelger/smp:snapshot-mongodb
# push both
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker push phelger/smp:snapshot
- docker push phelger/smp:snapshot-sql
- docker push phelger/smp:snapshot-mongodb
- docker logout
after_success:
- mvn deploy --settings travis-settings.xml -DskipTests=true -B -P travis-deploy
- bash <(curl -s https://codecov.io/bash)
- stage: test
jdk: openjdk11
script:
- mvn test -B
- stage: test
jdk: openjdk12
script:
- mvn test -B
You can’t perform that action at this time.