forked from alexander-myltsev/stalagmite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
27 lines (26 loc) · 976 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
pipeline:
build:
image: ensime/ensime:v2.x-cache
pull: true
environment:
- SBT_TASK_LIMIT=4
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
- sbt ++$SCALA_VERSION ";scalafmt::test ;test:scalafmt::test ;jmh:scalafmt::test ;sbt:scalafmt::test ;createHeaders";
if $(! git diff --exit-code --quiet) ; then
echo "Copyright header information mismatch" ;
git --no-pager diff ;
exit 1 ;
fi
- sbt ++$SCALA_VERSION ";compile ;test:compile";
- if [ -n "$DRONE_PULL_REQUEST" ] ; then sbt ++$SCALA_VERSION "test" ; fi
- if [ -z "$DRONE_PULL_REQUEST" ] ; then sbt ++$SCALA_VERSION publish ; fi
matrix:
SCALA_VERSION:
- 2.12.3
- 2.11.11