-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #136 from datosgobar/73-agregar-cd
73 agregar cd
- Loading branch information
Showing
4 changed files
with
41 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,48 @@ | ||
sudo: required | ||
|
||
services: | ||
- docker | ||
- docker | ||
|
||
language: python | ||
python: | ||
- "2.7" | ||
- "2.7" | ||
|
||
env: | ||
- DJANGO_SETTINGS_MODULE=conf.settings.testing | ||
- DJANGO_SETTINGS_MODULE=conf.settings.testing | ||
|
||
before_install: | ||
- docker-compose pull | ||
- docker-compose up -d elasticsearch redis | ||
- docker-compose ps | ||
- docker-compose pull | ||
- docker-compose up -d elasticsearch redis | ||
- docker-compose ps | ||
|
||
install: | ||
- pip install -r requirements/testing.txt | ||
- nvm install v7.4.0 | ||
- nvm use v7.4.0 | ||
- npm install | ||
|
||
- pip install -r requirements/testing.txt | ||
- nvm install v7.4.0 | ||
- nvm use v7.4.0 | ||
- npm install | ||
|
||
script: | ||
- npm run jsc | ||
- scripts/tests.sh | ||
- scripts/pylint.sh | ||
- scripts/pycodestyle.sh | ||
- npm run jsc | ||
- scripts/tests.sh | ||
- scripts/pylint.sh | ||
- scripts/pycodestyle.sh | ||
|
||
after_success: | ||
- coveralls | ||
|
||
before_deploy: | ||
- ssh-keyscan -p $DEPLOY_TARGET_SSH_PORT -t 'rsa,dsa,ecdsa' -H $DEPLOY_TARGET_IP 2>&1 | tee -a $HOME/.ssh/known_hosts | ||
- openssl aes-256-cbc -K $encrypted_ae74091d1bce_key -iv $encrypted_ae74091d1bce_iv -in deploy/build\[email protected] -out /tmp/build\[email protected] -d | ||
- eval "$(ssh-agent -s)" | ||
- chmod 600 /tmp/build\[email protected] | ||
- ssh-add /tmp/build\[email protected] | ||
- openssl aes-256-cbc -K $encrypted_f201276fd578_key -iv $encrypted_f201276fd578_iv -in deploy/vault_pass.txt.enc -out /tmp/vault_pass.txt -d | ||
- scp -P $DEPLOY_TARGET_SSH_PORT /tmp/vault_pass.txt $DEPLOY_TARGET_USERNAME@$DEPLOY_TARGET_IP:~/series-tiempo-ar-deploy/ | ||
- rm /tmp/vault_pass.txt | ||
|
||
deploy: | ||
skip_cleanup: true | ||
provider: script | ||
script: scripts/deploy.sh | ||
on: | ||
branch: master |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
j�ACRrn�D��ݢ�c�Y����h���) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
|
||
echo "Ejecutando comando de instalación..." | ||
ssh $DEPLOY_TARGET_USERNAME@$DEPLOY_TARGET_IP -p$DEPLOY_TARGET_SSH_PORT "\ | ||
cd ~/series-tiempo-ar-deploy &&\ | ||
git pull &&\ | ||
source ./env/bin/activate &&\ | ||
ansible-playbook -i inventories/testing/hosts --vault-password-file vault_pass.txt site.yml -vvv &&\ | ||
rm -f vault_pass.txt" |