Skip to content

Commit

Permalink
fix:move openssl in tron.sh.
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeNinjaEvan committed May 3, 2018
1 parent abbf9aa commit 7e4fd86
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
12 changes: 2 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,12 @@ sudo: required
language: java
jdk: oraclejdk8
script:
- sh tron.sh
- ./gradlew lint
- ./gradlew test
- cat tron > ~/.ssh/id_rsa
- chmod 600 ~/.ssh/id_rsa
- ./gradlew test
addons:
ssh_known_hosts:
- 47.93.9.236:22008
# - 47.93.33.201:22008
# - 123.56.10.6:22008
# - 39.107.80.135:22008
# - 47.93.184.2:22008
skip_build:
- README.md
- LICENSE
Expand All @@ -21,8 +16,5 @@ deploy:
script: bash deploy.sh
on:
branch: develop
before_install:
- openssl aes-256-cbc -K $encrypted_e5855cb9e09c_key -iv $encrypted_e5855cb9e09c_iv
-in tron.enc -out tron -d
after_deploy:
- ./gradlew stest
7 changes: 7 additions & 0 deletions tron.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

if [ $encrypted_e5855cb9e09c_key ];then
openssl aes-256-cbc -K $encrypted_e5855cb9e09c_key -iv $encrypted_e5855cb9e09c_iv -in tron.enc -out tron -d
cat tron > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
fi

0 comments on commit 7e4fd86

Please sign in to comment.