Move alias from definitions in pipelines YAML

This commit is contained in:
Ramon Wenger 2019-01-31 10:52:54 +01:00
parent 8d1dcda9bf
commit a91edfafb3
1 changed files with 15 additions and 14 deletions

View File

@ -11,24 +11,25 @@ clone:
definitions:
step: &unittest-python
name: Unittest python server code
caches:
- pip
services:
- postgres
script: # Modify the commands below to build your repository.
- pip install pipenv
- export SECRET_KEY=abcd1234
- export DATABASE_URL=postgres://postgres:postgres@localhost:5432/skillbox
- export DEBUG=True
- export USE_AWS=False
- pipenv install --dev --system
- ./server/run_unittests_coverage.sh
services:
postgres:
image: postgres
aliases:
- &unittest-python
name: Unittest python server code
caches:
- pip
services:
- postgres
script: # Modify the commands below to build your repository.
- pip install pipenv
- export SECRET_KEY=abcd1234
- export DATABASE_URL=postgres://postgres:postgres@localhost:5432/skillbox
- export DEBUG=True
- export USE_AWS=False
- pipenv install --dev --system
- ./server/run_unittests_coverage.sh
pipelines:
default: