Commit 78c5b44d authored by smilin_desperado's avatar smilin_desperado

Add frontend test and add stages

parent f78343cf
Pipeline #24133214 passed with stage
in 1 minute and 55 seconds
image: python:latest
stages:
- test
services:
- postgres:latest
variables:
POSTGRES_DB: ci
before_script:
- python -V
- pip install pipenv
- pipenv install
- cd src
- pipenv run python manage.py migrate --settings jobhunt.settings.ci
test:
test:django:
stage: test
image: python:latest
services:
- postgres:latest
before_script:
- python -V
- pip install pipenv
- pipenv install
- cd src
- pipenv run python manage.py migrate --settings jobhunt.settings.ci
variables:
POSTGRES_DB: ci
DATABASE_URL: "postgresql://postgres:postgres@postgres:5432/$POSTGRES_DB"
script:
- pipenv run python manage.py test --settings jobhunt.settings.ci
test:vue:
stage: test
image: node:8.11.3-slim
before_script:
- cd src/frontend
- node --version
- curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
- echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
- apt-get update && apt-get install -y yarn
- yarn
script:
- npm run test
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