.gitlab-ci.yml 521 Bytes
Newer Older
Yann Leboulanger's avatar
Yann Leboulanger committed
1
before_script:
Yann Leboulanger's avatar
Yann Leboulanger committed
2
  - sudo apt-get update -qq && sudo apt-get build-dep -y -qq python3-nbxmpp-nightly
Yann Leboulanger's avatar
Yann Leboulanger committed
3 4 5 6 7 8 9 10

stages:
  - test
  - build

run-test:
  stage: test
  script:
André's avatar
André committed
11
    - python3 setup.py test
Yann Leboulanger's avatar
Yann Leboulanger committed
12 13 14 15 16 17

run-build:
  stage: build
  script:
    - rm -rf dist
    - export FN="nbxmpp-"$(date +%F)
Yann Leboulanger's avatar
Yann Leboulanger committed
18
    - python3 setup.py sdist
Yann Leboulanger's avatar
Yann Leboulanger committed
19 20 21 22 23 24 25
    - scp dist/nbxmpp-*.tar.gz panoramix:/var/www/gajim/downloads/snap/ci/$FN-$CI_COMMIT_SHA.tar.gz

  artifacts:
    name: "nbxmpp-$CI_COMMIT_SHA"
    expire_in: 1 week
    paths:
      - dist/nbxmpp-*.tar.gz