-
Notifications
You must be signed in to change notification settings - Fork 0
/
shippable.yml
38 lines (35 loc) · 2.18 KB
/
shippable.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
language: java
jdk:
- oraclejdk8
env:
global:
- CD_BUCKET=elo-league-jfx-release CD_KEY=latest.zip
- secure: z9IGw3NJvhMCVNNDR66STZlpHp2gd62cAfJn/oUe0/ozvD1qcPyl3+c+Ypp06Hv3mFIzJUjaeWbTqs5uCuCGAVjB5shHwhFgO42oW1oH9zEBF1bEbSAoYTrVg+fp9Xw1lHkrStaUh2Sg3zF36Lv591BPCtJqaPPCFSkLLi5sI6c400BoD1vrHgKozd8ysutkmEMoebBwmeoBJj78j4NxINWXjpFp8a3ek0b/GPdsDT6A0kNQtxa1zo7k+sD0JtVvgxwRtkWB6JIWiWTiz7TicHWXhQyES3c7kxXQqdCRMU6Koa1lCOvj9/PFgtlO+7YFyJIFlOMarVgIp/QL6h8Erw==
- secure: dkmc+cm3MJORJsUfg8nceylVgD9Cd6cyiQ+4Rf1SJw3+mLorvBInMlVF96tKbGhPTgAGO4jJZGHoTrC9ygYJF5/t+Z5W2oikt4/FKJtlTj3KIZY7ggpoeJ1u9Oc2OLN1EfuxbByKQNw2yQLbtha5cjufDr39Lgdud8qQv0neNVms9cKELaGB4mcFf6A1PXPniJmcENH+UrlS6EdTgO5TzjzB8jDyyNHoBAmwo4rXNAEZfolJyoULkELGGvzaPMbppR6qse7+VTSlzNh5hORoHPpeImjeNQ7LsC88Cdmn+PXt/ksHhAxUHzIYmZ67SSTI2MuUxvRPNGbyr6fD9neVjg==
build:
ci:
- sudo apt-get install xvfb
- Xvfb :99 &>/dev/null &
- export DISPLAY=:99
- mkdir -p shippable/testresults
- mkdir -p shippable/codecoverage
- mkdir -p shippable/codecoverage/target/site/jacoco
- rm -rf build
- gradle wrapper
- ./gradlew clean build
post_ci:
- cp build/test-results/test/*.xml shippable/testresults
- cp build/reports/jacoco/test/jacocoTestReport.xml shippable/codecoverage
- cp -r build/jacoco/test.exec shippable/codecoverage/target/site/jacoco
- cp -r build/classes shippable/codecoverage/target
on_failure:
- cp build/test-results/test/*.xml shippable/testresults
on_success:
- export TAG_NAME=`git describe --exact-match --tags HEAD`
- export BRANCH_NAME=`git rev-parse --abbrev-ref HEAD`
- if [ "$TAG_NAME" != "" ]; then export RELEASE_KEY="$TAG_NAME.zip"; fi
- if [ "$TAG_NAME" != "" ]; then export RELEASE_KEY_DEB="$TAG_NAME.deb"; fi
- if [ "$BRANCH_NAME" = "master" ]; then aws s3 cp $SHIPPABLE_BUILD_DIR/build/distributions/elo-league-jfx-*.zip s3://$CD_BUCKET/$CD_KEY; fi
- if [ "$TAG_NAME" != "" ]; then aws s3 cp $SHIPPABLE_BUILD_DIR/build/distributions/elo-league-jfx-*.zip s3://$CD_BUCKET/$RELEASE_KEY; fi
- if [ "$TAG_NAME" != "" ]; then aws s3 cp $SHIPPABLE_BUILD_DIR/build/jfx/native/elo-league-jfx-*.deb s3://$CD_BUCKET/$RELEASE_KEY_DEB; fi
advancedReporting: true