-
Notifications
You must be signed in to change notification settings - Fork 1
/
circle.yml
33 lines (33 loc) · 1.88 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
machine:
java:
version: oraclejdk8
environment:
SBT_VERSION: 0.13.8
SBT_OPTS: "-Xms512M -Xmx1536M -Xss1M -XX:+CMSClassUnloadingEnabled -XX:+UseConcMarkSweepGC -XX:NewRatio=8 -Dstorage.diskCache.bufferSize=1024 -Dstorage.keepOpen=false"
dependencies:
cache_directories:
- "~/.sbt"
- "~/tate_full"
pre:
- if [[ ! -e $HOME/tate_full ]]; then wget --output-document=$HOME/tate_full.zip https://github.com/tategallery/collection/archive/master.zip && unzip -qq $HOME/tate_full.zip -d $HOME/tate_full && rm $HOME/tate_full.zip; fi
- wget --output-document=$HOME/bin/sbt-launch.jar https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/sbt-launch/"$SBT_VERSION"/sbt-launch.jar
- echo "java $SBT_OPTS -jar \`dirname \$0\`/sbt-launch.jar \"\$@\"" > $HOME/bin/sbt
- chmod u+x $HOME/bin/sbt
- which sbt
checkout:
post:
- git submodule sync --recursive
- git submodule update --recursive --init
test:
pre:
- mkdir -p $CIRCLE_TEST_REPORTS/junit/
- mkdir -p $HOME/$CIRCLE_PROJECT_REPONAME/translation_engine/test-resources/datasets/tate
- cd $HOME/tate_full/collection-master && for i in `find artworks -type f | shuf | head -50`; do cp --parents $i $HOME/$CIRCLE_PROJECT_REPONAME/translation_engine/test-resources/datasets/tate; done
- mkdir -p $HOME/$CIRCLE_PROJECT_REPONAME/translation_engine/test-resources/datasets/tate/artworks/a/000 && cp $HOME/tate_full/collection-master/artworks/a/000/a00001-1035.json $HOME/$CIRCLE_PROJECT_REPONAME/translation_engine/test-resources/datasets/tate/artworks/a/000
override:
- case $(($CIRCLE_NODE_INDEX % 2)) in 0) PROJECT="circle_1";; 1) PROJECT="circle_2";; esac; echo $PROJECT; sbt -Dspecs2.junit.outdir=$CIRCLE_TEST_REPORTS/junit "project $PROJECT" coverage "test-only -- junitxml console":
parallel: true
post:
- sbt 'coverageReport'
- sbt 'coverageAggregate'
- sbt 'coveralls'