mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix test expressions.
This commit is contained in:
parent
11c4a7b642
commit
bc3e3fd709
@ -4,15 +4,20 @@ set -e
|
|||||||
|
|
||||||
docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD";
|
docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD";
|
||||||
version=$(grep -oP "PROJECT_VERSION \"?\K[0-9.]+(?=\")"? $(dirname "$0")/../CMakeLists.txt)
|
version=$(grep -oP "PROJECT_VERSION \"?\K[0-9.]+(?=\")"? $(dirname "$0")/../CMakeLists.txt)
|
||||||
if [ "$TRAVIS_BRANCH" == "develop" ]; then
|
if [ "$TRAVIS_BRANCH" = "develop" ]
|
||||||
|
then
|
||||||
docker tag ethereum/solc:build ethereum/solc:nightly;
|
docker tag ethereum/solc:build ethereum/solc:nightly;
|
||||||
docker tag ethereum/solc:build ethereum/solc:nightly-"$version"-"$TRAVIS_COMMIT"
|
docker tag ethereum/solc:build ethereum/solc:nightly-"$version"-"$TRAVIS_COMMIT"
|
||||||
docker push ethereum/solc:nightly-"$version"-"$TRAVIS_COMMIT";
|
docker push ethereum/solc:nightly-"$version"-"$TRAVIS_COMMIT";
|
||||||
docker push ethereum/solc:nightly;
|
docker push ethereum/solc:nightly;
|
||||||
elif [ "$TRAVIS_BRANCH" == "release"]; then
|
elif [ "$TRAVIS_BRANCH" = "release" ]
|
||||||
|
then
|
||||||
docker tag ethereum/solc:build ethereum/solc:stable;
|
docker tag ethereum/solc:build ethereum/solc:stable;
|
||||||
docker push ethereum/solc:stable;
|
docker push ethereum/solc:stable;
|
||||||
elif [ "$TRAVIS_TAG" == v"$version"]; then
|
elif [ "$TRAVIS_TAG" = v"$version" ]
|
||||||
|
then
|
||||||
docker tag ethereum/solc:build ethereum/solc:"$version";
|
docker tag ethereum/solc:build ethereum/solc:"$version";
|
||||||
docker push ethereum/solc:"$version";
|
docker push ethereum/solc:"$version";
|
||||||
|
else
|
||||||
|
echo "Not publishing docker image from branch $TRAVIS_BRANCH or tag $TRAVIS_TAG"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user