.gitlab-ci.yml 995 Bytes
Newer Older
1
2
image: docker:latest

Eliot Berriot's avatar
Eliot Berriot committed
3
stages:
4
  - build
5
  - test
6
7
8

test_api:
  stage: test
9
  before_script:
10
    - docker-compose -f api/test.yml build
11
  script:
12
    - docker-compose -f api/test.yml run test
13
14
  after_script:
    - docker-compose -f api/test.yml run rm -rf api/funkwhale_api/media/*
15
16
17
18
19
20

  tags:
    - dind

build_front:
  stage: build
21
22
23
  before_script:
    - docker-compose -f dev.yml run front rm dist/*
    - docker-compose -f dev.yml build front
24
  script:
25
    - docker-compose -f dev.yml run front npm run build
26
27
28
  artifacts:
    paths:
      - front/dist
Eliot Berriot's avatar
Eliot Berriot committed
29
30
31
  only:
    - master
    - develop
32
33
  tags:
    - dind
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# When using dind, it's wise to use the overlayfs driver for
# improved performance.
# variables:
#   DOCKER_DRIVER: overlay
#
# services:
# - docker:dind
#
#
# # build:
# #   stage: build
# #   script:
# #   - docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
# #   - docker build -t funkwhale/front .
# #   - docker push
# #
# #   tags:
# #     - dind
# #   only:
# #     - master