forked from vividus-framework/vividus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
40 lines (34 loc) · 1.83 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
language: java
jdk:
- openjdk12
addons:
sonarcloud:
organization: "vividus"
token:
secure: "MslnWjgEGXiuajQvoKRHLSo9246L7jvipbV5fnTbh/Sc6qrWOlDMLiOqZxjG03+D5k2UENaftKGJOfjQtdb6EBV/cSipDzENsHm5fsCg4XW7xKYSnfIKoaeuv5LXr/7IJX63FQQTnYhTMvY8tb930I5FYjURxhK8PVfwEWhGtGeTDj+L2HE5tsR7T1YN97zDWov9oTY2tUueWwhOv+ppNztdsbLsZb1Oep/AymO041yO+G8E5a0P4UG0bTevHxmnrGtrnal516NFvDZ8XKn4nzlwrAQuMb97/liBgtlzK6NUqnTJ0b0/H7eW4dnJlaMtPidjc4vgS4yDjcwC0tmHjA38zvs1fRDpSn9hMXTVmqf57YfiwYH2+zpTcpWrvtANm8C40f22WjdFfe5nFTuWNlgeToWmdUHW/L/pPNMtyiXtS59M6StshMTKPwyQosL29JsjrD6U77rLTjPXQDZU3KULvH6sNBxGVYW2mWm37rhJ3E6M+UwNSk2I6DkpHfNy2VK3iQ5urzyKC+AEmP2orguDwdSwwUauMSHfX1LCqo9m7GpdD0ROUEHH/SBMAWjeBnDZuCwWbrTOUIRDyureoxiaISCsyIz/s14ZPbEQjPje9bjaCChdt/8d5vuJ9MVRXcSYiG9lyxW6I6K09PmFDk9O9DxOP015h0/RlFTB2ms="
# only build commits/PRs targeted to the master branch
# this avoids duplicate builds for push + PR
# https://github.com/travis-ci/travis-ci/issues/1147
branches:
only:
- master
install: skip
jobs:
include:
- stage: Build
script:
- ./gradlew build
- if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then git fetch --unshallow && ./gradlew sonarqube; fi
after_success: bash <(curl -s https://codecov.io/bash)
- stage: "Integration tests"
script: ./gradlew :vividus-tests:runStories
- stage: Publish
if: branch = master AND type IN (push)
script: ./gradlew artifactoryPublish -Dartifactory.publish.contextUrl=http://oss.jfrog.org -Dartifactory.publish.repoKey=oss-snapshot-local -Dartifactory.publish.username=$BINTRAY_USER -Dartifactory.publish.password=$BINTRAY_KEY -Dartifactory.publish.buildInfo=false
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/