2017-10-20 21:56:49 -05:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
# Used by dist/ci/docker-run.
|
|
|
|
- realpath
|
|
|
|
|
2017-07-13 18:21:56 -05:00
|
|
|
env:
|
|
|
|
global:
|
2017-07-17 16:01:03 -05:00
|
|
|
- OBS_PACKAGE="openSUSE:Tools/openSUSE-release-tools"
|
2017-07-13 18:21:56 -05:00
|
|
|
- OBS_USER="jberry"
|
|
|
|
# OBS_PASS
|
|
|
|
- secure: "0MI2ZbJ+C1FoOa+rBYq3+NQBoQzE528B1mNacZx5xaH6IipFklW9TlCUSO91Pgf2l72HzNL5GhBbYGtAO9og0tyJO9Vm+7F+AUNQHQjfD46r1MyxBlACi6FGwuR+E32OIFilekJCnNKp55Cl5O2wGWUcRRVlM6/+k24dt3lkIoY="
|
2017-07-13 21:24:34 -05:00
|
|
|
- OBS_EMAIL="opensuse-releaseteam@opensuse.org"
|
2017-07-13 18:21:56 -05:00
|
|
|
|
2017-07-12 20:28:41 -05:00
|
|
|
matrix:
|
|
|
|
include:
|
2017-09-01 17:23:13 -05:00
|
|
|
- env: TEST_SUITE=distribution TARGET_REPO=openSUSE_Factory
|
2017-07-12 20:28:41 -05:00
|
|
|
sudo: required
|
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
language: bash
|
|
|
|
before_install:
|
|
|
|
- docker build -f dist/ci/Dockerfile -t spec .
|
|
|
|
script:
|
2017-09-01 17:23:13 -05:00
|
|
|
- ./dist/ci/docker-run obs-build-target "$TARGET_REPO"
|
2018-08-31 15:04:35 -05:00
|
|
|
- env: TEST_SUITE=distribution TARGET_REPO=openSUSE_15.0
|
2017-09-01 18:00:49 -05:00
|
|
|
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"
|
2018-08-31 15:04:35 -05:00
|
|
|
- env: TEST_SUITE=distribution TARGET_REPO=SLE_15
|
2017-09-01 18:00:49 -05:00
|
|
|
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"
|
2017-10-17 09:11:44 +02:00
|
|
|
- env: TEST_SUITE=flake8
|
|
|
|
language: python
|
|
|
|
install:
|
|
|
|
- pip install flake8
|
|
|
|
script:
|
2017-10-20 08:45:37 +02:00
|
|
|
- flake8
|
2019-02-15 10:55:39 -06:00
|
|
|
- ./dist/ci/flake-extra
|
2017-07-12 20:28:41 -05:00
|
|
|
- env: TEST_SUITE=nosetests
|
2017-08-31 10:41:27 -05:00
|
|
|
sudo: required
|
2017-10-19 00:24:13 -05:00
|
|
|
services:
|
|
|
|
- docker
|
2017-07-12 20:28:41 -05:00
|
|
|
language: python
|
|
|
|
python: 2.7
|
2017-08-31 10:41:27 -05:00
|
|
|
before_install:
|
|
|
|
# provides xmllint used by test_bootstrap_copy (tests.freeze_tests.TestFreeze)
|
|
|
|
- sudo apt-get install libxml2-utils
|
2017-07-12 20:28:41 -05:00
|
|
|
install:
|
2017-10-19 00:24:13 -05:00
|
|
|
# urlgrabber needed to install osc from git in requirements.txt
|
|
|
|
# m2crypto for osc to be runable as used in docker-compose-obs
|
2018-10-12 15:04:41 +02:00
|
|
|
- pip install pycurl urlgrabber m2crypto pika
|
2017-07-12 20:28:41 -05:00
|
|
|
- pip install -r requirements.txt
|
|
|
|
- pip install python-coveralls
|
2017-09-25 16:21:40 +02:00
|
|
|
- pip install nose-exclude
|
2017-10-19 00:24:13 -05:00
|
|
|
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.
|
2017-10-24 17:41:12 -05:00
|
|
|
- python ./obs_clone.py --cache --debug --apiurl-target local
|
2017-07-12 20:28:41 -05:00
|
|
|
script:
|
2018-12-08 12:04:36 +01:00
|
|
|
- nosetests --with-coverage --cover-package=. --cover-inclusive --exclude-dir=./oqamaint --exclude-dir=./pkglistgen -c .noserc
|
2017-07-12 20:28:41 -05:00
|
|
|
after_success:
|
|
|
|
- coveralls
|
2018-11-15 11:54:38 -06:00
|
|
|
- env: TEST_SUITE=nosetests-osc-python3
|
|
|
|
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 pika
|
|
|
|
- sed -i 's|osc|osc@python3|' requirements.txt
|
|
|
|
- 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:
|
2018-12-08 12:04:36 +01:00
|
|
|
- nosetests --with-coverage --cover-package=. --cover-inclusive --exclude-dir=./oqamaint --exclude-dir=./pkglistgen -c .noserc
|
2018-11-15 11:54:38 -06:00
|
|
|
after_success:
|
|
|
|
- coveralls
|
|
|
|
- env: TEST_SUITE=nosetests-osc-python3
|
|
|
|
sudo: required
|
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
language: python
|
|
|
|
python: 3.6
|
|
|
|
before_install:
|
|
|
|
# provides xmllint used by test_bootstrap_copy (tests.freeze_tests.TestFreeze)
|
|
|
|
- sudo apt-get install libxml2-utils
|
|
|
|
install:
|
|
|
|
# m2crypto for osc to be runable as used in docker-compose-obs
|
|
|
|
- pip install pycurl m2crypto pika
|
|
|
|
- sed -i 's|osc|osc@python3|' requirements.txt
|
|
|
|
- sed -i 's|urlgrabber||' requirements.txt
|
|
|
|
- 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
|
|
|
|
allow_failures:
|
|
|
|
- env: TEST_SUITE=nosetests-osc-python3
|
2017-07-13 18:21:56 -05:00
|
|
|
|
|
|
|
deploy:
|
|
|
|
provider: script
|
2017-09-01 17:23:13 -05:00
|
|
|
script: ./dist/ci/docker-run obs-deploy
|
2017-07-13 18:21:56 -05:00
|
|
|
on:
|
|
|
|
branch: master
|
2017-09-01 18:00:49 -05:00
|
|
|
condition: $TEST_SUITE = distribution && $TARGET_REPO = openSUSE_Factory
|
2017-09-01 18:39:41 -05:00
|
|
|
|
|
|
|
cache:
|
|
|
|
directories:
|
2017-10-24 17:41:12 -05:00
|
|
|
# obs_clone.py
|
2018-09-04 15:03:03 -05:00
|
|
|
- ~/.cache/openSUSE-release-tools/request/clone
|
2017-10-24 17:41:12 -05:00
|
|
|
# distribution jobs `osc build`
|
2017-09-01 18:39:41 -05:00
|
|
|
- .docker-tmp
|
2017-10-20 21:57:05 -05:00
|
|
|
pip: true
|
2017-10-20 22:09:55 -05:00
|
|
|
# 7 days
|
|
|
|
timeout: 604800
|
2017-10-20 22:09:09 -05:00
|
|
|
before_cache:
|
|
|
|
- sudo rm -rf .docker-tmp/build-root
|
2017-10-24 17:58:16 -05:00
|
|
|
- sudo chmod -R o+rw .docker-tmp
|
2018-11-08 10:04:02 -06:00
|
|
|
|
|
|
|
notifications:
|
|
|
|
email:
|
|
|
|
recipients:
|
2018-11-28 18:51:36 -06:00
|
|
|
# Avoid spam from forks by using secure value that is only available in
|
|
|
|
# main project (see travis-ci/travis-ci#5063).
|
|
|
|
- secure: "CpMzZ1W2x9KCCsrWiYXy8PVfR8vJfuR6ewm/oui7F/hCQ736YHbtQpCbC7GjVoDNpsnWc0XbvFjOl0ehwFBRo1FM1ejy4Zc+XdZSgVFvJ6zUHW/S7uxBZ3YuC07YCzQnHIHh0TCFkFK9GCw0lrcPpsjgneux+C8JQ6tz16H5AmA="
|