Skip to content

Commit

Permalink
test travis streamline
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Jun 10, 2020
1 parent e98deb9 commit bef70ea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions scripts/release_sha3_only.sh
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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"

0 comments on commit bef70ea

Please sign in to comment.