Skip to content

Commit 1eda903

Browse files
committed
Fix caching
1 parent 76b9cc1 commit 1eda903

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

.drone.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
11
pipeline:
2-
init:
3-
image: lampepfl/dotty:2017-09-05
4-
commands:
5-
# get the ivy2 cache
6-
- ln -s /var/cache/drone/ivy2 "$HOME/.ivy2"
7-
82
# We run tests in parallel. Tests run in a copy of the working directory to avoid conflict
93
test_legacy:
104
group: test

project/scripts/genDocs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ fi
1515

1616
echo "Working directory: $PWD"
1717

18+
# get the ivy2 cache
19+
ln -s /var/cache/drone/ivy2 "$HOME/.ivy2"
20+
1821
# this command will generate docs in $PWD/docs/_site
1922
sbt -J-Xmx4096m \
2023
-J-XX:ReservedCodeCacheSize=512m \

project/scripts/sbt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ if [ -z "$CMD" ]; then
1010
exit 1
1111
fi
1212

13+
# get the ivy2 cache
14+
ln -s /var/cache/drone/ivy2 "$HOME/.ivy2"
15+
1316
# run sbt with the supplied arg:
1417
sbt -J-Xmx4096m \
1518
-J-XX:ReservedCodeCacheSize=512m \

project/scripts/sbtPublish

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ if [ -z "$RELEASE_CMD" ]; then
2121
exit 1
2222
fi
2323

24+
# get the ivy2 cache
25+
ln -s /var/cache/drone/ivy2 "$HOME/.ivy2"
26+
2427
CMD=" ;set credentials in ThisBuild := Seq(Credentials(\"Sonatype Nexus Repository Manager\", \"oss.sonatype.org\", \"$2\", \"$3\"))"
2528
CMD="$CMD ;set pgpPassphrase := Some(\"\"\"$4\"\"\".toCharArray)"
2629
CMD="$CMD ;set pgpSecretRing := file(\"/keys/secring.asc\")"

0 commit comments

Comments
 (0)