-
Notifications
You must be signed in to change notification settings - Fork 3
/
.drone.yml
31 lines (30 loc) · 989 Bytes
/
.drone.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
pipeline:
build:
when:
branch: master
image: ensime/ensime:v2.x-cache
pull: true
commands:
- host `curl -s http://httpbin.org/ip | jq -r '.origin'` || true ;
- git log | head -n 20 ; git fetch -q --tags
- if $(git grep -qE "TODO|FIXME" *) ; then
echo "Please remove TODO or FIXME. Create an issue at GitHub instead." ;
exit 1 ;
fi
- case $SCALA_VERSION in 2.12*) echo 1.8 > .java-version ; esac ;
git update-index --assume-unchanged .java-version
- sbt ++$SCALA_VERSION test:compile doc;
if $(! git diff --exit-code --quiet ) ; then
echo "Code formatting does not meet the project's standards:" ;
git --no-pager diff ;
exit 1 ;
fi
#- sbt ++$SCALA_VERSION test mimaReportBinaryIssues
- if [ -z "$DRONE_PULL_REQUEST" ] ; then
sbt ++$SCALA_VERSION publish ;
fi
matrix:
SCALA_VERSION:
- 2.12.1
- 2.11.8
- 2.10.6