aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2017-03-17 19:32:49 +0800
committerchriseth <chris@ethereum.org>2017-03-17 19:33:40 +0800
commit252299a1db1b0a4a3a19bd0f514be50be3423a66 (patch)
tree32a2ca5ed47610ef0bf54367e9ba5a47c1f53452
parentf9792a617187cc8aa6663fd831e319c94588df45 (diff)
downloaddexon-solidity-252299a1db1b0a4a3a19bd0f514be50be3423a66.tar.gz
dexon-solidity-252299a1db1b0a4a3a19bd0f514be50be3423a66.tar.zst
dexon-solidity-252299a1db1b0a4a3a19bd0f514be50be3423a66.zip
Move docker build to its own script.
-rw-r--r--.travis.yml7
-rwxr-xr-xscripts/docker_build.sh8
2 files changed, 9 insertions, 6 deletions
diff --git a/.travis.yml b/.travis.yml
index 900321d1..61fe0cc3 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -176,15 +176,10 @@ install:
- test $SOLC_INSTALL_DEPS_TRAVIS != On || (scripts/install_deps.sh)
- test "$TRAVIS_OS_NAME" != "linux" || (scripts/install_cmake.sh)
- echo -n "$TRAVIS_COMMIT" > commit_hash.txt
- - test $SOLC_DOCKER != On || (
- docker build -t tmp -f scripts/Dockerfile .
- tmp_container=$(docker create tmp sh)
- mkdir -p upload
- docker cp ${tmp_container}:/usr/bin/solc upload/
- )
before_script:
- test $SOLC_EMSCRIPTEN != On || (scripts/build_emscripten.sh)
+ - test $SOLC_DOCKER != On || (scripts/docker_build.sh)
- test $SOLC_RELEASE != On || (scripts/build.sh $SOLC_BUILD_TYPE
&& scripts/release.sh $ZIP_SUFFIX
&& scripts/create_source_tarball.sh)
diff --git a/scripts/docker_build.sh b/scripts/docker_build.sh
new file mode 100755
index 00000000..3bf7c16f
--- /dev/null
+++ b/scripts/docker_build.sh
@@ -0,0 +1,8 @@
+#!/usr/bin/env sh
+
+set -e
+
+docker build -t ethereum/solc:build -f scripts/Dockerfile .
+tmp_container=$(docker create ethereum/solc:build sh)
+mkdir -p upload
+docker cp ${tmp_container}:/usr/bin/solc upload/