.gitlab-ci.yml 868 Bytes
Newer Older
Eliot Berriot's avatar
Eliot Berriot committed
1
stages:
2
  - build
3
  - test
4
5
6

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

  tags:
    - dind

build_front:
  stage: build
19
  image: node:6-alpine
20
  script:
21
22
    - npm install
    - npm run build
23
24
25
  artifacts:
    paths:
      - front/dist
Eliot Berriot's avatar
Eliot Berriot committed
26
27
28
  only:
    - master
    - develop
29
  tags:
30
31
    - docker

32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# 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