.gitlab-ci.yml 929 Bytes
Newer Older
okhin's avatar
okhin committed
1
2
3
4
5
before_script:
        - export PIP_CACHE_DIR="pip-cache"
cache:
        paths:
                - pip-cache
okhin's avatar
okhin committed
6
7
job test:
        script:
okhin's avatar
okhin committed
8
                - tox
okhin's avatar
okhin committed
9
10
        stage: test
        tags: [memopol]
okhin's avatar
okhin committed
11
12
13
job install:
        script:
                - source /srv/memopol/memopol_env/bin/activate
Jamesie Pic's avatar
Jamesie Pic committed
14
15
                - cd /srv/memopol/memopol_env/src/memopol/docs
                - make html
okhin's avatar
okhin committed
16
17
18
19
20
21
                - cd /srv/memopol/memopol_env/src/memopol
                - git fetch origin
                - git reset --hard origin/master
                - find . -name '*.pyc' -delete
                - pip install -Ue .
                - src/memopol/bin/install_client_deps.sh
Nicolas Joyard's avatar
Nicolas Joyard committed
22
                - memopol migrate --noinput
okhin's avatar
okhin committed
23
                - memopol collectstatic --noinput
24
                - sudo service uwsgi restart memopol
okhin's avatar
okhin committed
25
        stage: deploy
okhin's avatar
okhin committed
26
        tags: [memopol]
okhin's avatar
okhin committed
27
        environment: production
okhin's avatar
okhin committed
28
29
        only:
                - master