Skip to content

Commit

Permalink
Merge pull request tronprotocol#1463 from tronprotocol/deploy_test
Browse files Browse the repository at this point in the history
Deploy test
  • Loading branch information
CodeNinjaEvan authored Sep 6, 2018
2 parents dcfdeee + c420b48 commit b678739
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
6 changes: 1 addition & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,11 @@ cache:
script:
- sh tron.sh
- "./gradlew build"
- sh deploy.sh

skip_build:
- README.md:
- LICENSE
deploy:
provider: script
script: bash deploy.sh
on:
branch: develop



Expand Down
12 changes: 10 additions & 2 deletions deploy.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
#!/bin/bash
ssh tron@47.93.9.236 -p 22008 sh /home/tron/workspace/deploy_all.sh
./gradlew stest

echo "$TRAVIS_BRANCH"

if [ "$TRAVIS_BRANCH" = "develop" ];then
echo "init env"
ssh tron@47.93.9.236 -p 22008 sh /home/tron/workspace/deploy_all.sh
echo "stest start"
./gradlew stest
fi
echo "bye bye"

0 comments on commit b678739

Please sign in to comment.