Skip to content

Commit a09e13c

Browse files
authored
fix redundant publishing from travis (#430)
1 parent 3df3459 commit a09e13c

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

.travis.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,8 @@ env:
1313
script:
1414
- "./gradlew clean"
1515
- "./gradlew exhaustiveTest"
16-
- "if [[ -n $TRAVIS_TAG ]]; then
17-
./gradlew ship;
18-
else
19-
./gradlew build;
20-
fi"
16+
- "./gradlew build"
17+
2118
cache:
2219
gradle: true
2320
directories:
@@ -40,6 +37,7 @@ stages:
4037
- 'Integration tests'
4138
- 'Full stack production tests'
4239
- 'Test'
40+
- 'Publish'
4341

4442
jobs:
4543
include:
@@ -75,10 +73,13 @@ jobs:
7573

7674
- stage: 'Source Clear'
7775
if: type = cron
78-
addons:
79-
srcclr: true
80-
before_install: skip
8176
install: skip
8277
before_script: skip
8378
script: skip
8479
after_success: skip
80+
81+
- stage: 'Publish'
82+
if: tag IS present
83+
script:
84+
- ./gradlew ship
85+
after_success: skip

0 commit comments

Comments
 (0)