mirror of
https://github.com/YunoHost-Apps/rocketchat_ynh.git
synced 2024-09-03 20:16:25 +02:00
Upgrade test setup
This commit is contained in:
parent
156a0263be
commit
0a9d83e261
1 changed files with 7 additions and 6 deletions
13
.travis.yml
13
.travis.yml
|
@ -6,6 +6,7 @@ language: python
|
|||
env:
|
||||
global:
|
||||
- secure: "hqvINLgdxfGqZju03GgBWzZ1pdJkoIzx78FULktXkYGUXYRDSMh/tONjtKDMKJvK9rFflkZNIrTZ5j2ueipd73iXl2pM0+jXl3Z64rBa+XK6Kq78p/qP4XdpFoMmOVvs6YIumXHmtxCfcT6EtvHrDkkoNF7oKpuISObKEMDONOLyuEcO6ZjexzmkUpioxjDTkvaE5+jcXflqPLp5JR9A7E75Tofct/y7i2lWOfR45FCY7DIpuE82Hkic41ZhHWuMguedw7L+cIow449ynZQpGSGjpsOciu9OtneJB7LZakVZsOYb3e34+i0TdjqiLYwQa46vqLW4TEK5MLXQI5FF2TF3pvJXiIrFr/gAhoP5YMrbSGHkOYZtAcYVUoMX38lQctUU9NzaELkayo9RqFodXboBs2hniqFbxHuhYYC9tPsZNyTTf/+OcZXS9Ic1iE4HR2Ok4xOg6QF8iOTXW6nPt2Ct0f5oWAdGlyjmxYFVGs3l44g9HV84RkeHYP/BS43C3blAd0SIjtab/4TSgFcmSfv+M/5yl3ZsidBc9yTMvgOvZXPIhOFJq+XLTL4QB0tN1Sdy1wofs7wnRFjbGrw4kOTBrcCkBioqMiMZzTtmeVejjMr61cSmLG7lzPoYCvc5vpS3xAca5XiOECb50oCwkxxoXDoqdEGLz3RQQfnJWRk="
|
||||
- DOCTL_CLI_URI="https://github.com/digitalocean/doctl/releases/download/v1.13.0/doctl-1.13.0-linux-amd64.tar.gz"
|
||||
- DROPLET_NAME="ynh26-pkgchk-${TRAVIS_BUILD_ID}"
|
||||
- dropletsshcmd="./doctl compute ssh ${DROPLET_NAME} --ssh-command"
|
||||
- DOCTL=./doctl
|
||||
|
@ -15,15 +16,11 @@ install:
|
|||
- echo "Host *" | tee -a ~/.ssh/config # to disable authenticity of host input y/n
|
||||
- echo " StrictHostKeyChecking=no" | tee -a ~/.ssh/config # to disable authenticity of host input y/n
|
||||
- echo " UserKnownHostsFile=/dev/null" | tee -a ~/.ssh/config # to disable authenticity of host input y/n
|
||||
- curl -L https://github.com/digitalocean/doctl/releases/download/v1.11.0/doctl-1.11.0-linux-amd64.tar.gz | tar xz
|
||||
- curl -L ${DOCTL_CLI_URI} | tar xz
|
||||
- echo "creating droplet with name ${DROPLET_NAME}"
|
||||
- DROPLET_NAME=${DROPLET_NAME} ${DOCTL} compute ssh-key create ${DROPLET_NAME} --no-header --public-key "$(cat ~/.ssh/id_rsa.pub)"
|
||||
- sleep 2
|
||||
- DROPLET_NAME=${DROPLET_NAME} ${DOCTL} compute droplet create ${DROPLET_NAME} --wait --region fra1 --image debian-8-x64 --size 8gb --ssh-keys $(${DOCTL} compute ssh-key list --no-header | grep ${DROPLET_NAME} | awk -F ' ' '{print $1}')
|
||||
|
||||
after_script:
|
||||
- ${DOCTL} compute droplet delete ${DROPLET_NAME} -f
|
||||
- ${DOCTL} compute ssh-key delete $(${DOCTL} compute ssh-key list | grep ${DROPLET_NAME} | awk -F ' ' '{print $1}') -f
|
||||
- DROPLET_NAME=${DROPLET_NAME} ${DOCTL} compute droplet create ${DROPLET_NAME} --wait --region fra1 --image debian-9-x64 --size 4gb --ssh-keys $(${DOCTL} compute ssh-key list --no-header | grep ${DROPLET_NAME} | awk -F ' ' '{print $1}')
|
||||
|
||||
script:
|
||||
- sleep 15
|
||||
|
@ -35,3 +32,7 @@ script:
|
|||
- $dropletsshcmd "cd package && git checkout ${TRAVIS_COMMIT} && cd .."
|
||||
- $dropletsshcmd "./package_check/package_check.sh --build-lxc --bash-mode package"
|
||||
- $dropletsshcmd "cat ./package_check/Complete.log"
|
||||
|
||||
after_script:
|
||||
- ${DOCTL} compute droplet delete ${DROPLET_NAME} -f
|
||||
- ${DOCTL} compute ssh-key delete $(${DOCTL} compute ssh-key list | grep ${DROPLET_NAME} | awk -F ' ' '{print $1}') -f
|
||||
|
|
Loading…
Add table
Reference in a new issue