Commit d2c4b000 authored by Blaise Thompson's avatar Blaise Thompson Committed by Kyle Sunden
Browse files

update gitlab ci

parent 64910b66
# This file is a template, and might need editing before it works on your project.
# Official language image. Look for the different tagged releases at:
# https://hub.docker.com/r/library/python/tags/
# configure
image: python:latest
# Change pip's cache directory to be inside the project directory since we can
# only cache local items.
variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
stages:
- build
- test
- deploy
# Pip's cache doesn't store the python packages
# https://pip.pypa.io/en/stable/reference/pip_install/#caching
#
# If you want to also cache the installed packages, you have to install
# them in a virtualenv and cache it as well.
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip" # cache on project level
cache:
paths:
- .cache/pip
- venv/
# common to all scripts
before_script:
- python -V # Print out python version for debugging
- python -V
- pip install -U virtualenv
- virtualenv venv
- source venv/bin/activate
- pip install -U twine
- pip install -U pytest
- pip install -U mypy
- pip install -U yaqd_core
- pip install -U yaqd-core
- pip install -U aiohttp
- pip install -e .
# test stage
mypy:
stage: test
script:
- mypy yaqd_gdrive
run:
stage: build
entry:
stage: test
script:
- python setup.py sdist bdist_wheel
# an alternative approach is to install and run:
- pip install -U dist/*.whl
# run the command here
artifacts:
paths:
- dist/*
- yaqd-gdrive --version
- yaqd-gdrive -h
deploy_twine:
# deploy stage
twine:
stage: deploy
script:
- python setup.py sdist bdist_wheel
- twine upload dist/*
artifacts:
paths:
- dist/*
only:
- tags
......@@ -13,6 +13,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/).
### Changed
- from now on, yaqd-gdrive will use calendar based versioning
- cleanup repository
- refactor gitlab-ci
- Use daemon level loggers, see [YEP-106](https://yeps.yaq.fyi/106)
## [0.2.0]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment