diff --git a/.travis.yml b/.travis.yml index c9a278f1..66a24901 100644 --- a/.travis.yml +++ b/.travis.yml @@ -32,12 +32,14 @@ jobs: - cd $TRAVIS_BUILD_DIR - ./scripts/replace_default_feature.sh ./ sha3hash ${HASH_ALGO} - ./scripts/replace_default_feature.sh ./ secp256k1 ${CRYPTO_ALGO} - script: ./env.sh "make release" + script: sudo ./env.sh "make release" before_cache: + - mv -vf target/install docker/release/cita_secp256k1_sha3 - cd $TRAVIS_BUILD_DIR - rm -rf target/release-cache - mv -vf target/install target/release-cache + - &stage-contract-test-sha3-secp256k1 stage: IntegrateTest name: Unit Group diff --git a/scripts/release_sha3_only.sh b/scripts/release_sha3_only.sh index 668b6ee2..95df01bd 100755 --- a/scripts/release_sha3_only.sh +++ b/scripts/release_sha3_only.sh @@ -1,6 +1,4 @@ #!/bin/bash - -cp -r $(TRAVIS_BUILD_DIR)/target/release-cache docker/release/cita_secp256k1_sha3 cd ./docker/release || return tar czf cita_secp256k1_sha3.tar.gz cita_secp256k1_sha3 @@ -12,3 +10,4 @@ docker build . -t "$CITA_REPOSITORY_NAME":"$TRAVIS_TAG" docker login --username "$DOCKER_USERNAME" --password "$DOCKER_PASSWORD" docker push "$CITA_REPOSITORY_NAME":"$TRAVIS_TAG" +