From 0b0c19ca06e19c1aba7cb84e05b0837d4b599773 Mon Sep 17 00:00:00 2001 From: tooomm Date: Tue, 11 Jul 2017 14:30:14 +0200 Subject: [PATCH] folder for all Travis CI files and scripts (#117) * add .travis folder - gather all travis related files in one folder - update location calls * Move verify_files back out * Update .travis.yml * Move deploy_key to .travis folder --- .travis.yml | 4 ++-- deploy.sh => .travis/deploy.sh | 2 +- deploy_key.enc => .travis/deploy_key.enc | Bin verify_files.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) rename deploy.sh => .travis/deploy.sh (95%) rename deploy_key.enc => .travis/deploy_key.enc (100%) diff --git a/.travis.yml b/.travis.yml index 3a8051a2..b3e5642d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,7 +14,7 @@ before_install: install: - pip install -r requirements.txt -script: bash ./deploy.sh +script: bash ./.travis/deploy.sh after_script: - sleep 10 # helps travis finish logging @@ -26,7 +26,7 @@ notifications: - https://webhooks.gitter.im/e/691b9acffe1def5f9d6b on_success: change # options: [always|never|change] default: always on_failure: change # options: [always|never|change] default: always - on_start: never # options: [always|never|change] default: always + on_start: never # options: [always|never|change] default: always deploy: provider: releases diff --git a/deploy.sh b/.travis/deploy.sh similarity index 95% rename from deploy.sh rename to .travis/deploy.sh index f66ac703..7282c14c 100644 --- a/deploy.sh +++ b/.travis/deploy.sh @@ -67,7 +67,7 @@ ENCRYPTED_KEY_VAR="encrypted_${ENCRYPTION_LABEL}_key" ENCRYPTED_IV_VAR="encrypted_${ENCRYPTION_LABEL}_iv" ENCRYPTED_KEY=${!ENCRYPTED_KEY_VAR} ENCRYPTED_IV=${!ENCRYPTED_IV_VAR} -openssl aes-256-cbc -K $ENCRYPTED_KEY -iv $ENCRYPTED_IV -in ../deploy_key.enc -out ../deploy_key -d +openssl aes-256-cbc -K $ENCRYPTED_KEY -iv $ENCRYPTED_IV -in ../.travis/deploy_key.enc -out ../deploy_key -d chmod 600 ../deploy_key eval `ssh-agent -s` ssh-add ../deploy_key diff --git a/deploy_key.enc b/.travis/deploy_key.enc similarity index 100% rename from deploy_key.enc rename to .travis/deploy_key.enc diff --git a/verify_files.py b/verify_files.py index 25848498..c8163eb3 100644 --- a/verify_files.py +++ b/verify_files.py @@ -21,4 +21,4 @@ if __name__ == '__main__': card_corrections = load_file('cards_corrections.yml','yaml') delete_cards = load_file('cards_delete.yml','yaml') - print "Pre-flight: All input files loaded successfully." \ No newline at end of file + print "Pre-flight: All input files loaded successfully."