Skip to content
Snippets Groups Projects
Commit 385c7eb1 authored by Eliot Berriot's avatar Eliot Berriot
Browse files

More file removal and tweaks to gitlab-ci

parent 3cb2b31f
No related branches found
No related tags found
No related merge requests found
image: docker:latest image: docker:latest
stages: stages:
- test
- build - build
- test
test_api: test_api:
stage: test stage: test
script: before_script:
- docker-compose -f api/test.yml build - docker-compose -f api/test.yml build
script:
- docker-compose -f api/test.yml run test - docker-compose -f api/test.yml run test
after_script:
- docker-compose -f api/test.yml run rm -rf api/funkwhale_api/media/*
tags: tags:
- dind - dind
build_front: build_front:
stage: build stage: build
before_script:
- docker-compose -f dev.yml run front rm dist/*
- docker-compose -f dev.yml build front
script: script:
- docker-compose -f dev.yml front rm dist/* - docker-compose -f dev.yml run front npm run build
- docker-compose -f dev.yml front npm run build
artifacts: artifacts:
paths: paths:
- front/dist - front/dist
......
test: test:
dockerfile: docker/Dockerfile.test dockerfile: docker/Dockerfile.test
build: . build: .
entrypoint: python manage.py test command: python manage.py test
volumes: volumes:
- .:/app - .:/app
environment: environment:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment