forked from spacewalkproject/spacewalk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
26 lines (26 loc) · 1.1 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
git:
depth: 1000
branches:
only:
- master
notifications:
email: false
sudo: required
before_install:
- echo "deb http://us.archive.ubuntu.com/ubuntu trusty main universe" | sudo tee -a /etc/apt/sources.list
- sudo apt-get update
- wget https://fedorahosted.org/released/koji/koji-1.9.0.tar.bz2 -O /tmp/koji-1.9.0.tar.bz2
- tar -xjf /tmp/koji-1.9.0.tar.bz2 -C /tmp
- wget https://github.com/dgoodwin/tito/archive/tito-0.4.18-1.tar.gz -O /tmp/tito.tar.gz
install:
- sudo apt-get install yum yum-utils mock pigz python-rpm python-openssl python-urlgrabber python-decoratortools python-lzma python-setuptools python-krbv
- sudo make -C /tmp/koji-1.9.0/cli DESTDIR=/ install && export PYTHONPATH=$PYTHONPATH:/tmp/koji-1.9.0/
- sudo pip install /tmp/tito.tar.gz
- sudo groupadd mock
- sudo usermod -a -G mock travis
before_script:
- sudo cp rel-eng/travis/mock/spacewalk.cfg /etc/mock/
- git config user.email "travis@localhost" && git config user.name "Travis"
- ln -s `pwd`/rel-eng/travis/koji ~/.koji
- echo "KOJI_OPTIONS=-c ~/.koji/spacewalk-config build --nowait" > ~/.spacewalk-build-rc
script: rel-eng/travis/build