.gitlab-ci.yml 973 Bytes
Newer Older
1
2
3
variables:
        PIP_CACHE_DIR = "$CI_PROJECT_DIR/pip-cache"

okhin's avatar
okhin committed
4
5
cache:
        paths:
6
7
                - "$CI_PROJECT_DIR/pip-cache"
        key: "$CI_PROJECT_ID"
okhin's avatar
okhin committed
8
9
job test:
        script:
okhin's avatar
okhin committed
10
                - tox
okhin's avatar
okhin committed
11
12
        stage: test
        tags: [memopol]
okhin's avatar
okhin committed
13
14
15
job install:
        script:
                - source /srv/memopol/memopol_env/bin/activate
Jamesie Pic's avatar
Jamesie Pic committed
16
17
                - cd /srv/memopol/memopol_env/src/memopol/docs
                - make html
okhin's avatar
okhin committed
18
19
20
21
22
23
                - 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
24
                - memopol migrate --noinput
okhin's avatar
okhin committed
25
                - memopol collectstatic --noinput
okhin's avatar
okhin committed
26
                - touch /srv/memopol/ready
okhin's avatar
okhin committed
27
        stage: deploy
okhin's avatar
okhin committed
28
        tags: [memopol]
okhin's avatar
okhin committed
29
        environment: production
okhin's avatar
okhin committed
30
31
        only:
                - master