Projekt

Obecné

Profil

Stáhnout (620 Bajtů) Statistiky
| Větev: | Tag: | Revize:
1
image: docker:latest
2
services:
3
  - docker:dind
4

    
5
stages:
6
  - build
7
  - test
8

    
9
variables:
10
  CONTAINER_TEST_IMAGE: gitlab.kiv.zcu.cz/aswi/aswi-2020/aswi2020merlot:$CI_BUILD_REF_NAME
11

    
12
before_script:
13
  - docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN gitlab.kiv.zcu.cz
14

    
15
build:
16
  stage: build
17
  only:
18
    refs:
19
      - master
20
  script:
21
    - docker build -t $CONTAINER_TEST_IMAGE .
22
    - docker push $CONTAINER_TEST_IMAGE
23

    
24
unit_test:
25
  stage: test
26
  only:
27
    refs:
28
      - master
29
  script:
30
    - cp .env.example .env
31
    - composer install
32
    - php artisan key:generate
33
    - php artisan migrate
34
    - vendor/bin/phpunit
(5-5/16)