forked from Insolita/yii2-migrik
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
34 lines (31 loc) · 931 Bytes
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Composer stores all downloaded packages in the vendor/ directory.
# Do not use the following if the vendor/ directory is commited to
# your git repository.
cache:
paths:
- vendor/
# Run PHP Code Sniffer.
code_sniffer:7.0:
image: git.versat.azcuba.cu:4567/docker/php:7.0
before_script:
- bash /opt/composer/install.sh
- composer install
script:
- vendor/bin/phpcs --standard=vendor/yiisoft/yii2-coding-standards/Yii2/ --extensions=php --ignore=vendor/ .
# Prueba de docker.
.test:trusty:
image: git.versat.azcuba.cu:4567/docker/ubuntu:trusty
script:
- echo 'Probando Ubuntu:trusty'
- lsb_release -a
- echo 'Mostrando sources.list'
- cat /etc/apt/sources.list
.test:xenial:
image: git.versat.azcuba.cu:4567/docker/ubuntu:xenial
script:
- echo 'Listando directorio'
- ls -l
- echo 'Probando Ubuntu:xenial'
# - lsb_release -a
- echo 'Mostrando sources.list'
- cat /etc/apt/sources.list