forked from nitrite/nitrite-java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
53 lines (41 loc) · 1.01 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
language: java
jdk:
- oraclejdk8
sudo:
- required
os:
- linux
services:
- docker
- mongodb
branches:
except:
- /^feature-.*$/
before_install:
- openssl aes-256-cbc -pass pass:$PGP_KEY_PASSWORD -in ./.ci/secring.gpg.enc -out ~/secring.gpg -d -md md5
- chmod a+x gradlew
- chmod a+x ./.ci/build.sh
- chmod a+x ./.ci/prepare-travis.sh
- chmod a+x ./.ci/release.sh
- . ./.ci/prepare-travis.sh
before_script:
- rm nitrite-datagate/src/main/resources/application.properties
install: true
script:
- travis_retry . ./.ci/build.sh
after_success:
- bash <(curl -s https://codecov.io/bash)
- travis_retry . ./.ci/release.sh
deploy:
provider: releases
skip_cleanup: true
api_key: $GITHUB_TOKEN
file:
- $TRAVIS_BUILD_DIR/nitrite-datagate/src/main/dist/nitrite-datagate-$NITRITE_VERSION.zip
- $TRAVIS_BUILD_DIR/nitrite-explorer/build/libs/nitrite-explorer-$NITRITE_VERSION.jar
on:
tags: true
env:
global:
- NITRITE_VERSION=3.3.0-SNAPSHOT
- PGP_KEY_FILE=~/secring.gpg