.gitlab-ci.yml 838 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 14 15 16 17 18 19
job install:
        script:
                - source /srv/memopol/memopol_env/bin/activate
                - 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
20
                - memopol migrate --noinput
okhin's avatar
okhin committed
21
                - memopol collectstatic --noinput
22
                - sudo service uwsgi restart memopol
okhin's avatar
okhin committed
23
        stage: deploy
okhin's avatar
okhin committed
24
        tags: [memopol]
okhin's avatar
okhin committed
25
        environment: production
okhin's avatar
okhin committed
26 27
        only:
                - master