Commit 2a1bb86a authored by helmo's avatar helmo

Merge branch 'ci-syntax-test' into 7.x-3.x

Add lint check and set some tests to manual that were for a master branch only.
parents b2ec92f3 d8804c84
......@@ -10,12 +10,28 @@ before_script:
# Defines stages which are to be executed
stages:
- syntax
- build
- test
- publish
- upgradetest
#
### Stage syntax
#
syntax:codestyle:
stage: syntax
image: bobey/docker-gitlab-ci-runner-php5.6
allow_failure: false
script:
- composer require phplint/phplint
- echo "Syntax checking PHP files"
- echo "For more information http://www.icosaedro.it/phplint/"
- vendor/bin/phplint ./ --exclude "vendor"
#
### Stage "build"
#
......@@ -49,10 +65,13 @@ build:deb:
test:debian-jessie-aegir3-apt:
stage: test
image: debian:jessie
allow_failure: false
dependencies:
- build:deb
only:
when: manual
except:
- 7.x-3.x
- /^7\.x-3\.\d+\.x/
before_script:
- apt-get update
......@@ -66,7 +85,7 @@ test:debian-jessie-aegir3-apt:
test:debian-stretch-aegir3-apt:
stage: test
image: debian:stretch
allow_failure: true
allow_failure: false
dependencies:
- build:deb
......@@ -82,10 +101,14 @@ test:debian-stretch-aegir3-apt:
test:ubuntu-xenial-aegir3-apt:
stage: test
image: ubuntu:xenial
allow_failure: false
dependencies:
- build:deb
only:
when: manual
except:
- 7.x-3.x
- /^7\.x-3\.\d+\.x/
before_script:
- apt-get update
......@@ -99,9 +122,14 @@ test:ubuntu-xenial-aegir3-apt:
test:ubuntu-artful-aegir3-apt:
stage: test
image: ubuntu:artful
allow_failure: true
dependencies:
- build:deb
allow_failure: true
when: manual
except:
- 7.x-3.x
- /^7\.x-3\.\d+\.x/
before_script:
- apt-get update
......@@ -153,7 +181,6 @@ publish:unstable-repo:
stage: publish
dependencies:
- build:deb
allow_failure: true
only:
- 7.x-3.x
......@@ -191,6 +218,7 @@ upgradetest:debian-jessie-aegir3-apt-upgrade:
image: debian:jessie
dependencies:
- publish:unstable-repo
allow_failure: false
when: manual
......
Markdown is supported
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