gitlab ci syntax
* multiple before_script segments overwrite one another
This commit is contained in:
parent
453d054ebb
commit
565702d91f
|
@ -8,7 +8,7 @@ cache:
|
||||||
paths:
|
paths:
|
||||||
# utilize pip caching
|
# utilize pip caching
|
||||||
- .cache/pip
|
- .cache/pip
|
||||||
# cache the virtualenv to reduce load
|
# cache the virtual environment
|
||||||
- venv/
|
- venv/
|
||||||
|
|
||||||
# setup environemnt
|
# setup environemnt
|
||||||
|
@ -18,6 +18,7 @@ before_script:
|
||||||
- virtualenv venv
|
- virtualenv venv
|
||||||
- source venv/bin/activate
|
- source venv/bin/activate
|
||||||
- pip install -r requirements.txt
|
- pip install -r requirements.txt
|
||||||
|
- pip install flake8
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- syntax
|
- syntax
|
||||||
|
@ -25,8 +26,6 @@ stages:
|
||||||
|
|
||||||
syntax:
|
syntax:
|
||||||
stage: syntax
|
stage: syntax
|
||||||
before_script:
|
|
||||||
- pip install flake8
|
|
||||||
script:
|
script:
|
||||||
# breaking errors ie syntax errors
|
# breaking errors ie syntax errors
|
||||||
- flake8 --select=E9,F63,F7,F82 --show-source
|
- flake8 --select=E9,F63,F7,F82 --show-source
|
||||||
|
|
Loading…
Reference in New Issue