Skip to content

Commit d34a205

Browse files
committed
add circleci config
1 parent 83a8e85 commit d34a205

File tree

1 file changed

+61
-0
lines changed

1 file changed

+61
-0
lines changed

.circleci/config.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
version: 2.1
2+
3+
jobs:
4+
it-tests:
5+
docker:
6+
- image: openjdk:8
7+
environment:
8+
SBT_VERSION: 0.13.17
9+
steps:
10+
- run:
11+
name: Get sbt binary
12+
command: |
13+
apt update && apt install -y curl
14+
curl -L -o sbt-$SBT_VERSION.deb https://dl.bintray.com/sbt/debian/sbt-$SBT_VERSION.deb
15+
dpkg -i sbt-$SBT_VERSION.deb
16+
rm sbt-$SBT_VERSION.deb
17+
apt-get clean && apt-get autoclean
18+
- checkout
19+
- restore_cache:
20+
key: sbt-cache
21+
- run:
22+
name: SBT Test
23+
command: sbt it:test
24+
build:
25+
docker:
26+
- image: openjdk:8
27+
environment:
28+
SBT_VERSION: 0.13.17
29+
steps:
30+
- run:
31+
name: Get sbt binary
32+
command: |
33+
apt update && apt install -y curl
34+
curl -L -o sbt-$SBT_VERSION.deb https://dl.bintray.com/sbt/debian/sbt-$SBT_VERSION.deb
35+
dpkg -i sbt-$SBT_VERSION.deb
36+
rm sbt-$SBT_VERSION.deb
37+
apt-get clean && apt-get autoclean
38+
- checkout
39+
- restore_cache:
40+
key: sbt-cache
41+
- run:
42+
name: SBT Test
43+
command: sbt test
44+
- run:
45+
name: SBT Package
46+
command: sbt universal:packageBin
47+
- save_cache:
48+
key: sbt-cache
49+
paths:
50+
- "~/.ivy2/cache"
51+
- "~/.sbt"
52+
- "~/.m2"
53+
54+
workflows:
55+
version: 2
56+
build:
57+
jobs:
58+
- build
59+
- it-tests:
60+
requires:
61+
- build

0 commit comments

Comments
 (0)