.gitlab-ci.yml 900 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
21
  before_script:
    - cd front
22
  script:
23
24
    - npm install
    - npm run build
25
26
27
  artifacts:
    paths:
      - front/dist
Eliot Berriot's avatar
Eliot Berriot committed
28
29
30
  only:
    - master
    - develop
31
  tags:
32
33
    - docker

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