Commit 8081938e authored by remy's avatar remy
Browse files

update gitlab-ci.yml for the tests

parent b0012274
Pipeline #177 failed with stages
in 20 seconds
stages:
- build
- test
- deploy
image: docker:latest
......@@ -7,23 +8,31 @@ image: docker:latest
services:
- docker:dind
before_script:
- hostname
- docker info
- docker-compose --version
- wget http://web.mbb.univ-montp2.fr/download/wicopa.sql.gz
- gunzip -d wicopa.sql.gz
buildJob:
stage: build
tags:
- bioco
script:
- apk update
- apk add --no-cache py-pip python-dev libffi-dev openssl-dev gcc libc-dev make wget gzip git netstat
- git clone https://gitlab.mbb.univ-montp2.fr/jlopez/wicopa.git
- cd wicopa
- wget http://web.mbb.univ-montp2.fr/download/wicopa.sql.gz
- gunzip -d wicopa.sql.gz
- pip install docker-compose
- docker-compose build
TestJob:
stage: test
script:
- docker info
RunDeployment:
stage: deploy
tags:
- bioco
script:
- docker-compose up
- netstat -naptu |grep -E "80|3306"
- wget http://127.0.0.1:8000
- cat index.*
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment