.gitlab-ci.yml 1005 Bytes
Newer Older
Agate's avatar
Attempt  
Agate committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
stages:
  - test
#   - build
#
# test_api:
#   stage: test
#   before_script:
#     - docker-compose -f api/test.yml build
#   script:
#     - docker-compose -f api/test.yml run test
#   after_script:
#     - docker-compose -f api/test.yml run test rm -rf funkwhale_api/media/
#
#   tags:
#     - dind
#
# build_front:
#   stage: build
#   image: node:6-alpine
#   before_script:
#     - cd front
#
#   script:
#     - npm install
#     - npm run build
#   cache:
#     key: "$CI_COMMIT_REF_NAME"
#     paths:
#       - front/node_modules
#   artifacts:
#     name: "front_${CI_COMMIT_REF_NAME}"
#     paths:
#       - front/dist/
#   only:
#     - master
#     - develop
#   tags:
#     - docker
39

40

Agate's avatar
Agate committed
41
pages:
Agate's avatar
Attempt  
Agate committed
42
  stage: test
Agate's avatar
Agate committed
43 44 45 46 47 48 49 50
  image: alpine
  before_script:
    - cd docs
  script:
    - apk --no-cache add py2-pip python-dev
    - pip install sphinx
    - apk --no-cache add make
    - make html
Agate's avatar
Attempt  
Agate committed
51
    - mv _build/html/ ../public
Agate's avatar
Agate committed
52 53 54 55 56
  artifacts:
    paths:
      - public
  only:
    - master
Agate's avatar
Agate committed
57 58
  tags:
    - docker