forked from BedwarsRel/BedwarsRel
-
Notifications
You must be signed in to change notification settings - Fork 1
/
circle.yml
38 lines (37 loc) · 1.26 KB
/
circle.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
version: 2
executorType: docker
containerInfo:
- image: maven:3.5-jdk-8
jobs:
build:
branches:
ignore:
- l10n
working_directory: "~/BedwarsRel"
steps:
- type: checkout
- run:
name: "Getting Dependencies"
command: './get-dependencies.sh'
working_directory: "~/BedwarsRel/build"
- run:
name: "Building and deploying BedwarsRel"
command: |
export SHORT_HASH=$(echo $CIRCLE_SHA1 | cut -c -7)
if [ "${CIRCLE_BRANCH}" == "master" ]
then
mvn deploy -fae -P ci-release,deploy-snapshot,attach-javadocs,attach-sources --settings settings.xml
elif [ "${CIRCLE_BRANCH}" == "develop" ]
then
mvn deploy -fae -P ci-snapshot,deploy-snapshot,attach-javadocs,attach-sources --settings settings.xml
else
mvn clean install -fae -P ci-snapshot,attach-javadocs,attach-sources
fi
mkdir -p plugin/target/artifacts/
cp plugin/target/BedwarsRel-*.jar plugin/target/artifacts/.
- type: artifacts-store
path: plugin/target/artifacts
destination: artifacts
- type: artifacts-store
path: plugin/target/apidocs
destination: apidocs