forked from Enegrecer/enegrecer-web
-
Notifications
You must be signed in to change notification settings - Fork 0
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 Enegrecer#301 from Enegrecer/development
Sincroniza development com master
- Loading branch information
Showing
5 changed files
with
80 additions
and
3 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
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
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
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
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,44 @@ | ||
#!/bin/sh | ||
|
||
echo Instalando o Protractor globalmente... | ||
yarn global add protractor | ||
|
||
export StatusResult1=$?; | ||
if [ $StatusResult1 -eq "0" ]; then | ||
echo Atualizando o servidor do Selenium... | ||
webdriver-manager update | ||
export StatusResult2=$?; | ||
if [ $StatusResult2 -eq "0" ]; then | ||
echo Iniciando o servidor... | ||
webdriver-manager start --detach | ||
export StatusResult3=$?; | ||
if [ $StatusResult3 -eq "0" ]; then | ||
echo Executando os testes... | ||
protractor functional-tests.conf.js | ||
export StatusResult4=$?; | ||
if [ $StatusResult4 -eq "0" ]; then | ||
echo Parando o servidor... | ||
webdriver-manager shutdown | ||
export StatusResult5=$?; | ||
if [ $StatusResult5 -eq "0" ]; then | ||
echo O servidor foi parado com sucesso! | ||
else | ||
echo O encerramento do servidor falhou e retornou o código $StatusResult5! | ||
exit $StatusResult5 | ||
fi | ||
else | ||
echo A execução dos testes falhou e retornou o código $StatusResult4! | ||
exit $StatusResult4 | ||
fi | ||
else | ||
echo A iniciação do servidor falhou e retornou o código $StatusResult3! | ||
exit $StatusResult3 | ||
fi | ||
else | ||
echo A atualização do servidor falhou e retornou o código $StatusResult2! | ||
exit $StatusResult2 | ||
fi | ||
else | ||
echo A instalação do Protractor falhou e retornou o código $StatusResult1! | ||
exit $StatusResult1 | ||
fi |