.gitlab-ci.yml 377 Bytes
Newer Older
therealwa3er's avatar
therealwa3er committed
1
image: docker:latest
therealwa3er's avatar
therealwa3er committed
2

therealwa3er's avatar
therealwa3er committed
3
before_script:
therealwa3er's avatar
therealwa3er committed
4
5
6
7
- docker info
- apk update
- apk upgrade
- apk add python python-dev py-pip build-base
therealwa3er's avatar
therealwa3er committed
8
- pip install docker-compose
therealwa3er's avatar
therealwa3er committed
9
10

stages:
therealwa3er's avatar
therealwa3er committed
11
12
    - build
    - test
therealwa3er's avatar
therealwa3er committed
13
    
therealwa3er's avatar
therealwa3er committed
14
build:
therealwa3er's avatar
therealwa3er committed
15
    script:
therealwa3er's avatar
therealwa3er committed
16
17
    - docker-compose -f docker/docker-compose.yml  up -d

therealwa3er's avatar
therealwa3er committed
18
19

test:
therealwa3er's avatar
therealwa3er committed
20
  script:
therealwa3er's avatar
therealwa3er committed
21
  - docker exec  -it -w //var/www/html/alecsia/app docker_alecsia_1   ./../vendor/bin/phpunit