CI framework with support for local execution.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

54 lines
1.0 KiB

runners:
global:
env:
- name: A
value: A
- name: B
value: B
- name: C
value: C
workdir: .
python:
env:
- name: A
value: D
dependencies:
- flake8
- build
jobs:
- name: env
type: python
changes:
branch: origin/master
paths:
- "docs"
- "alice-ci"
env:
- name: B
value: E
commands:
- "-c \"from os import environ; assert environ['A'] == 'D'; assert environ['B'] == 'E'; assert environ['C'] == 'C'; print('Assertions passed')\""
- name: lint
type: python
workdir: alice-ci/src
commands:
- "-m flake8 --ignore E501"
- name: pkg
type: pypi
workdir: .
upload: false
fail_if_exists: false # TODO: currently unused
repo:
uri: example.com
username:
from_env: PYPIUSER
password:
from_env: PYPIPASS
packages:
- alice-ci
pipelines:
default:
- lint
- env
- pkg