.gitlab-ci.yml 954 Bytes
Newer Older
Jerome Flesch's avatar
Jerome Flesch committed
1
2
3
image: debian:stable-slim

check:
4
5
6
  only:
    - branches@World/OpenPaperwork/openpaper.work
    - tags@World/OpenPaperwork/openpaper.work
Jerome Flesch's avatar
Jerome Flesch committed
7
8
9
10
11
12
13
14
  tags:
    - linux
    - volatile
  script:
    - apt-get update
    - apt-get install -y -q make
    - apt-get install -y -q pycodestyle flake8 python3-flake8 tox
    - make check
15
16

deploy:
17
18
19
  only:
    - branches@World/OpenPaperwork/openpaper.work
    - tags@World/OpenPaperwork/openpaper.work
20
21
22
  tags:
    - openpaper.work
  script:
23
24
25
26
27
    # this gitlab-runner is not running as root
    # - apt-get update
    # - apt-get install -y -q python3 python3-virtualenv
    # - apt-get install -y -q libmariadb-dev
    # - apt-get install -y -q wget rclone
28
    - cd /var/www/openpaper.work && git pull
Jerome Flesch's avatar
Jerome Flesch committed
29
    - cd /var/www/openpaper.work && source venv/bin/activate && make install
30
    - sudo /etc/reload_apache.sh
31
32
    - sleep 5
    - ./gen_static_pages.sh  http://127.0.0.1 static_pages
33
    - ./deliver_static.sh static_pages