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