.gitlab-ci.yml 654 Bytes
Newer Older
CAMPION Sebastien's avatar
CAMPION Sebastien committed
1
2
stages:
  - build
3
4
5
6
7
8
9
10
11
  - test
  - cleanning

before_script:
  - docker info
  - docker-compose --version
  - pwd

# ---------------------------
CAMPION Sebastien's avatar
CAMPION Sebastien committed
12
13

bootstrap:
14
15
  tags:
    - allgo
CAMPION Sebastien's avatar
CAMPION Sebastien committed
16
  stage: build
17
18
19
20
  script:
    - rm -f .env
    - sudo rm -rf data/*
    - ./bootstrap
21
22
23
24
25

django_pylint:
  stage: test
  # only:
  #   - /django/
CAMPION Sebastien's avatar
CAMPION Sebastien committed
26
  script:
27
28
29
30
31
32
33
34
35
36
    - echo $PYLINTHOME
    - docker exec -i dev-django pylint3 --rcfile=.pylintrc allgo
  allow_failure: true

#~ django_test:
  #~ stage: test
  #~ # only:
  #~ #   - /django/
  #~ script:
    #~ - docker exec -i dev-django python3 manage.py test
CAMPION Sebastien's avatar
CAMPION Sebastien committed
37

38
39
40
41
42
nettoyage:
  stage: cleanning
  when: always
  script:
    - sudo rm -rf data/*