-
Notifications
You must be signed in to change notification settings - Fork 155
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(travis): parallelise build (#296)
* fix(travis): refactor * fix(travis): refactor * fix(travis): refactor * fix(travis): refactor * fix(travis): refactor * fix(travis): refactor * fix(travis): refactor * fix(travis): refactor * fix(travis): refactor * fix(travis): refactor * fix(travis): refactor * fix(travis): refactor * fix(travis): refactor * fix(travis): refactor * fix(travis): refactor * fix(travis): refactor * fix(travis): refactor * fix
- Loading branch information
Showing
12 changed files
with
115 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
find $HOME/.sbt -name "*.lock" | xargs rm | ||
find $HOME/.ivy2 -name "ivydata-*.properties" | xargs rm | ||
rm -f $HOME/.ivy2/.sbt.ivy.lock | ||
rm -f $HOME/.ivy2/cache/org.apache.hbase/hbase-server/ivy-1.1.1.xml | ||
./scripts/clear_from_cache.sh | ||
|
||
echo "Saving metorikku JAR to cache" | ||
rm -rf target/streams/\$global/assembly target/streams/\$global/assemblyOption target/streams/test/assemblyOption target/streams/test/assembly | ||
cp -r target $TARGET_CACHE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
sbt -DsparkVersion=$SPARK_VERSION clean scalastyle assembly "set test in (Test, assembly) := {}" test:assembly | ||
sbt -DsparkVersion=$SPARK_VERSION clean scalastyle "set test in (assembly) := {}" assembly "set test in (Test, assembly) := {}" test:assembly |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
find $HOME/.sbt -name "*.lock" | xargs rm | ||
find $HOME/.ivy2 -name "ivydata-*.properties" | xargs rm | ||
rm -f $HOME/.ivy2/.sbt.ivy.lock | ||
rm -f $HOME/.ivy2/cache/org.apache.hbase/hbase-server/ivy-1.1.1.xml |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
tag=$(([ ! "${TRAVIS_PULL_REQUEST}" = "false" ] && echo "${TRAVIS_PULL_REQUEST}") || echo "${TRAVIS_BRANCH}") | ||
docker pull metorikku/dev:metorikku_$tag | ||
docker pull metorikku/dev:spark_$tag | ||
docker pull metorikku/dev:hive_$tag | ||
docker pull metorikku/dev:hive1_$tag | ||
docker tag metorikku/dev:metorikku_$tag metorikku/metorikku | ||
docker tag metorikku/dev:spark_$tag metorikku/spark | ||
docker tag metorikku/dev:hive_$tag metorikku/hive | ||
docker tag metorikku/dev:hive1_$tag metorikku/hive:1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
echo "Loading docker cache" | ||
docker load -i $DOCKER_CACHE/images.tar | ||
|
||
while read REPOSITORY TAG IMAGE_ID | ||
do | ||
echo "== Tagging $REPOSITORY $TAG $IMAGE_ID ==" | ||
docker tag "$IMAGE_ID" "$REPOSITORY:$TAG" | ||
done < $DOCKER_CACHE/images.list |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
echo "Loading metorikku JAR" | ||
cp -r $TARGET_CACHE/target . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
echo "Saving docker images to cache" | ||
docker save -o $DOCKER_CACHE/images.tar $(docker images -a -q) | ||
docker images | grep -v '<none>' | sed '1d' | awk '{print $1 " " $2 " " $3}' > $DOCKER_CACHE/images.list |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters