forked from spotify/scio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
40 lines (37 loc) · 1.38 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
39
40
machine:
java:
version: oraclejdk8
environment:
SBT_OPTS: "-XX:ReservedCodeCacheSize=256m"
JAVA_OPTS: "-Xms1g -Xmx2g -Dsun.io.serialization.extendedDebugInfo=true"
GOOGLE_APPLICATION_CREDENTIALS: "scripts/data-integration-test.json"
dependencies:
cache_directories:
- "~/.ivy2"
- "~/.sbt"
pre:
- wget -q https://dl.bintray.com/sbt/debian/sbt-0.13.16.deb
- sudo dpkg -i sbt-0.13.16.deb
- find ~/.sbt -name "*.lock" | xargs -r rm
- find ~/.ivy2 -name "ivydata-*.properties" | xargs -r rm
override:
- ./scripts/circleci_compile.sh
test:
override:
- ./scripts/circleci_test.sh:
parallel: true
- ./scripts/circleci_parallel_run.sh './scripts/it-repl.sh $CI_SCALA_VERSION':
parallel: true
post:
- bash <(curl -s https://codecov.io/bash)
- if ( ( [ $CIRCLE_BRANCH = "master" ] || [ $CIRCLE_BRANCH = "beam-2.0" ] ) && $(grep -q SNAPSHOT version.sbt) ); then ./scripts/circleci_parallel_run.sh 'sbt ++$CI_SCALA_VERSION publish'; fi:
parallel: true
deployment:
release:
tag: /v.*/
commands:
- go get -u github.com/tcnksm/ghr
- ./scripts/circleci_parallel_run.sh 'sbt ++2.11.11 "project scio-repl" clean assembly'
- mkdir "$CIRCLE_ARTIFACTS/repl"
- cp scio-repl/target/scala-*/scio-repl-*.jar "$CIRCLE_ARTIFACTS/repl/"
- ghr -u spotify -draft $CIRCLE_TAG "$CIRCLE_ARTIFACTS/repl"