mirror of
https://github.com/Cian-H/invenio-config-iform.git
synced 2025-12-22 21:11:57 +00:00
Using github action - passwords are secured in secrets, and it seperated the publishing the package from testing the package. This closes #20
53 lines
1.2 KiB
YAML
53 lines
1.2 KiB
YAML
# -*- coding: utf-8 -*-
|
|
#
|
|
# Copyright (C) 2020 Mojib Wali.
|
|
#
|
|
# invenio-config-tugraz is free software; you can redistribute it and/or
|
|
# modify it under the terms of the MIT License; see LICENSE file for more
|
|
# details.
|
|
branches:
|
|
except:
|
|
- /^v\d+\.\d+(\.\d+)?(\S*)?$/
|
|
|
|
notifications:
|
|
email: false
|
|
|
|
sudo: false
|
|
|
|
language: python
|
|
|
|
matrix:
|
|
fast_finish: true
|
|
allow_failures:
|
|
# To allow failures, you need to specify the full environment
|
|
- env: REQUIREMENTS=devel
|
|
|
|
cache:
|
|
- pip
|
|
|
|
env:
|
|
- REQUIREMENTS=lowest
|
|
- REQUIREMENTS=release DEPLOY=true
|
|
- REQUIREMENTS=devel
|
|
|
|
python:
|
|
- "3.6"
|
|
- "3.7"
|
|
|
|
before_install:
|
|
- "nvm install 6; nvm use 6"
|
|
- "travis_retry pip install --upgrade pip setuptools py"
|
|
- "travis_retry pip install twine wheel coveralls requirements-builder"
|
|
- "requirements-builder -e all --level=min setup.py > .travis-lowest-requirements.txt"
|
|
- "requirements-builder -e all --level=pypi setup.py > .travis-release-requirements.txt"
|
|
- "requirements-builder -e all --level=dev --req requirements-devel.txt setup.py > .travis-devel-requirements.txt"
|
|
|
|
install:
|
|
- "travis_retry pip install -r .travis-${REQUIREMENTS}-requirements.txt"
|
|
- "travis_retry pip install -e .[all]"
|
|
|
|
script:
|
|
- "./run-tests.sh"
|
|
|
|
after_success:
|
|
- coveralls |