зеркало из https://github.com/mozilla/iris.git
44 строки
911 B
YAML
44 строки
911 B
YAML
sudo: required
|
|
language: python
|
|
python: '3.7.3'
|
|
|
|
# Bootstrap install
|
|
install:
|
|
- 'bootstrap/linux_bootstrap.sh'
|
|
- 'pipenv install'
|
|
|
|
# Virtual display for headless run at 1920x1080 32 bit resolution
|
|
before_script:
|
|
- "export DISPLAY=:99.0"
|
|
- "Xvfb :99 -screen 0 1920x1080x24+32 +extension GLX +extension RANDR > /dev/null 2>&1 &"
|
|
|
|
with_content_shell: true
|
|
|
|
# Job sections
|
|
jobs:
|
|
include:
|
|
- stage: Lint
|
|
before_script: skip
|
|
install: pip install tox
|
|
script: tox -e flake8
|
|
- stage: Unit Tests
|
|
install: pip install tox
|
|
script:
|
|
- tox -e config_default
|
|
- tox -e config_custom
|
|
- stage: Build
|
|
os: linux
|
|
dist: xenial
|
|
script: pipenv run iris -h
|
|
|
|
|
|
# Email notification
|
|
notifications:
|
|
email:
|
|
recipients:
|
|
- twalker@mozilla.com
|
|
- mwobensmith@mozilla.com
|
|
on_success: change
|
|
on_failure: always
|
|
on_cancel: always
|