diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 000000000..e401f6d7b --- /dev/null +++ b/.travis.yml @@ -0,0 +1,24 @@ +# Linguagem Utilizada para Desenvolver a Aplicação +language: python + +# Versão que a aplicação suporta. +python: + - "3.6.3" + +# Faz a instalação com Sudo, para ter privilégio de Super Usuário. +sudo: required + +# Instalação de Módulos que são necessários para a Aplicação. +install: + - pip install flask + +# Defini o script de Teste que deve rodar toda vez que o código for alterado. +script: + - python test.py + +# Defini que o processo de Deploy será na Plataforma Heroku. É necessário informar o nome da APP criada no Heroku +deploy: + provider: heroku + api-key: + secure: $HEROKU_API_KEY + app: devopsessentialstest diff --git a/README.md b/README.md index 1889077c8..6fc42b583 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,7 @@ # Trilha DevOps da 4Linux - - + +[](https://travis-ci.com/KallSnake/DevOpsLab-HelloWorld) ## Aplicação criada para exemplificar o Ciclo de uma PipeLine DevOps diff --git a/requirements.txt b/requirements.txt index 6ea516dd7..6704767ec 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,2 @@ -Flask==2.2.5 -gunicorn +Flask==0.12.2 +gunicorn \ No newline at end of file diff --git a/runtime.txt b/runtime.txt index 119ff1023..cfa5aa5ca 100644 --- a/runtime.txt +++ b/runtime.txt @@ -1 +1 @@ -python-3.10.7 +python-3.6.2 diff --git a/static/imgs/4linux.jpg b/static/imgs/4linux.jpg index 73f9053ee..dcf3f6c13 100644 Binary files a/static/imgs/4linux.jpg and b/static/imgs/4linux.jpg differ diff --git a/templates/index.html b/templates/index.html index c7548e320..9676589a9 100644 --- a/templates/index.html +++ b/templates/index.html @@ -5,12 +5,12 @@ -