.gitlab-ci.yml 1.13 KB
Newer Older
1 2 3
image: python

stages:
4 5
  - test
  - deploy
6 7

before_script:
8
  - pip install --upgrade pip setuptools tox
9

Elad Noor's avatar
Elad Noor committed
10
test35:
11
  stage: test
12
  image: python:3.5
Elad Noor's avatar
Elad Noor committed
13 14 15 16 17
  script:
    - tox -e isort
#    - tox -e flake8
    - tox -e safety
    - tox -e py35 -- --cov-report xml --cov-report term
18
#    - bash <(curl -s https://codecov.io/bash)
19

Elad Noor's avatar
Elad Noor committed
20
test36:
21
  stage: test
22
  image: python:3.6
Elad Noor's avatar
Elad Noor committed
23 24
  script:
    - tox -e py36 -- --cov-report xml --cov-report term
25
#    - bash <(curl -s https://codecov.io/bash)
eladnoor's avatar
eladnoor committed
26

27 28 29 30 31 32
#test37:
#  image: python:3.7
#  stage: test
#  script:
#    - tox -e py37 -- --cov-report xml --cov-report term
#    - bash <(curl -s https://codecov.io/bash)
33

eladnoor's avatar
eladnoor committed
34
pypi:
35
  stage: deploy
36 37 38
  image: python:3.5
  variables:
    GIT_LFS_SKIP_SMUDGE: "1"
eladnoor's avatar
eladnoor committed
39
  script:
eladnoor's avatar
eladnoor committed
40
    - pip install --upgrade wheel twine
41 42
    - curl -L https://github.com/github/git-lfs/releases/download/v1.4.1/git-lfs-linux-amd64-1.4.1.tar.gz | tar xz
    - pushd git-lfs-1.4.1
43
    - ./install.sh
44 45 46 47
    - popd
    - rm -rf git-lfs-1.4.1
    - git lfs pull
    - git lfs status
48
    - python setup.py sdist bdist_wheel
49
    - twine upload --username=$PYPI_USERNAME --password=$PYPI_PASSWORD --skip-existing dist/*
eladnoor's avatar
eladnoor committed
50
  only:
Elad Noor's avatar
Elad Noor committed
51
  - tags