.gitlab-ci.yml 808 Bytes
Newer Older
1
variables:
Jamesie Pic's avatar
Jamesie Pic committed
2
    PIP_CACHE_DIR: "$CI_PROJECT_DIR/pip-cache"
3

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