Move docker build to its own script.

This commit is contained in:
chriseth 2017-03-17 12:32:49 +01:00
parent f9792a6171
commit 252299a1db
2 changed files with 9 additions and 6 deletions

View File

@ -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)

8
scripts/docker_build.sh Executable file
View File

@ -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/