.gitlab-ci.yml 515 Bytes
Newer Older
okhin's avatar
okhin committed
1
before_script:
okhin's avatar
okhin committed
2 3 4
  - '[[ -d /srv/piphone/ ]] || mkdir -p /srv/piphone/'
  - 'which git || (apt-get update -yq && apt-get install git -yqq)'
  - 'which virtualenv || (apt-get update -yq && apt-get install python3-virtualenv -yqq)'
okhin's avatar
okhin committed
5
  - '[[ which sqlite3 || (apt-get update -yq && apt-get install sqlite3 -yqq)'
okhin's avatar
okhin committed
6 7

job install:
okhin's avatar
okhin committed
8 9
  variables:
    SQLITE_DB: "/srv/piphone/backend_sip.sqlite3"
okhin's avatar
okhin committed
10
  script:
okhin's avatar
okhin committed
11 12
    - chmod a+x ci/install.sh
    - ./ci/install.sh
13
  stage: deploy
okhin's avatar
okhin committed
14 15 16 17
  tags:
    - piphone
    - ssh
  only:
okhin's avatar
okhin committed
18
    - master