Files
myhealth/.gitlab-ci.yml
Marcos Garcia Nuñez 83e3fb9867 Update .gitlab-ci.yml
2019-12-20 08:07:58 +01:00

55 lines
980 B
YAML

image: openjdk:8
before_script:
#- apt-get update
#- apt-get -y install ant
stages:
- build
- test
- deploy
ci_build:
stage: build
script:
- cd 1.sources/MyHealth
- ant clean
- ant all
ci_test:
stage: test
script:
- cd 1.sources/MyHealth
#- ant clean all TestUnitarios
deploy_pre:
stage: deploy
script:
- echo "Eliminamos archivo ear anterior..."
- rm $JBOSS_HOME/standalone/deployments/myhealth.*
- echo "Despliegue al servidor de PRE"
- cd 1.sources/MyHealth
- ant deployear
environment:
name: pre
url: https://localhost:8080/MyHealth
only:
- master
deploy_pro:
stage: deploy
script:
- echo "Eliminamos archivo ear anterior..."
- rm $JBOSS_HOME/standalone/deployments/myhealth.*
- echo "Despliegue al servidor de PRO"
- cd 1.sources/MyHealth
- ant deployear
environment:
name: pro
url: https://localhost:8080/MyHealth
when: manual
only:
- master