.gitlab-ci.yml 730 Bytes
Newer Older
okhin's avatar
okhin committed
1 2
job test:
        script:
okhin's avatar
okhin committed
3
                - tox
okhin's avatar
okhin committed
4 5
        stage: test
        tags: [memopol]
okhin's avatar
okhin committed
6 7 8 9 10 11 12 13 14
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
15
                - memopol migrate --noinput
okhin's avatar
okhin committed
16
                - memopol collectstatic --noinput
17
                - sudo service uwsgi restart memopol
okhin's avatar
okhin committed
18
        stage: deploy
okhin's avatar
okhin committed
19
        tags: [memopol]
okhin's avatar
okhin committed
20
        environment: production
okhin's avatar
okhin committed
21 22
        only:
                - master