Jimmy Berry 06a9f15999 metrics_release: remove executable flag left over from development.
Ignore metrics from nosetests loader since it is no longer executable.
2018-04-17 15:46:09 -05:00

97 lines
2.9 KiB
YAML

addons:
apt:
packages:
# Used by dist/ci/docker-run.
- realpath
env:
global:
- OBS_PACKAGE="openSUSE:Tools/openSUSE-release-tools"
- OBS_USER="jberry"
# OBS_PASS
- secure: "0MI2ZbJ+C1FoOa+rBYq3+NQBoQzE528B1mNacZx5xaH6IipFklW9TlCUSO91Pgf2l72HzNL5GhBbYGtAO9og0tyJO9Vm+7F+AUNQHQjfD46r1MyxBlACi6FGwuR+E32OIFilekJCnNKp55Cl5O2wGWUcRRVlM6/+k24dt3lkIoY="
- OBS_EMAIL="opensuse-releaseteam@opensuse.org"
matrix:
include:
- env: TEST_SUITE=distribution TARGET_REPO=openSUSE_Factory
sudo: required
services:
- docker
language: bash
before_install:
- docker build -f dist/ci/Dockerfile -t spec .
script:
- ./dist/ci/docker-run obs-build-target "$TARGET_REPO"
- env: TEST_SUITE=distribution TARGET_REPO=openSUSE_42.3
sudo: required
services:
- docker
language: bash
before_install:
- docker build -f dist/ci/Dockerfile -t spec .
script:
- ./dist/ci/docker-run obs-build-target "$TARGET_REPO"
- env: TEST_SUITE=distribution TARGET_REPO=SLE_12_SP3
sudo: required
services:
- docker
language: bash
before_install:
- docker build -f dist/ci/Dockerfile -t spec .
script:
- ./dist/ci/docker-run obs-build-target "$TARGET_REPO"
- env: TEST_SUITE=flake8
language: python
install:
- pip install flake8
script:
- flake8
- env: TEST_SUITE=nosetests
sudo: required
services:
- docker
language: python
python: 2.7
before_install:
# provides xmllint used by test_bootstrap_copy (tests.freeze_tests.TestFreeze)
- sudo apt-get install libxml2-utils
install:
# urlgrabber needed to install osc from git in requirements.txt
# m2crypto for osc to be runable as used in docker-compose-obs
- pip install pycurl urlgrabber m2crypto
- pip install -r requirements.txt
- pip install python-coveralls
- pip install nose-exclude
before_script:
# travis-ci/travis-ci#7008: stop services to make room for OBS setup
- sudo service mysql stop
- sudo service memcached stop
- ./dist/ci/docker-compose-obs
# Needs python prefix to use the correct interpretor.
- python ./obs_clone.py --cache --debug --apiurl-target local
script:
- nosetests --with-coverage --cover-package=. --cover-inclusive --exclude-dir=./oqamaint -c .noserc
after_success:
- coveralls
deploy:
provider: script
script: ./dist/ci/docker-run obs-deploy
on:
branch: master
condition: $TEST_SUITE = distribution && $TARGET_REPO = openSUSE_Factory
cache:
directories:
# obs_clone.py
- ~/.cache/openSUSE-release-tools-clone
# distribution jobs `osc build`
- .docker-tmp
pip: true
# 7 days
timeout: 604800
before_cache:
- sudo rm -rf .docker-tmp/build-root
- sudo chmod -R o+rw .docker-tmp