forked from maru-sama/rtsp-linux
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
45 lines (39 loc) · 2.08 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
language: c
env:
- DIST=wheezy MIRROR=http://http.debian.net/debian/
before_install:
- sudo apt-get update
- wget http://mirrors.kernel.org/ubuntu/pool/main/d/debootstrap/debootstrap_1.0.67_all.deb
- wget http://mirrors.kernel.org/ubuntu/pool/main/p/pbuilder/pbuilder_0.215ubuntu7_all.deb
- wget http://mirrors.kernel.org/ubuntu/pool/universe/p/piuparts/piuparts-common_0.62_all.deb
- wget http://mirrors.kernel.org/ubuntu/pool/universe/p/piuparts/piuparts_0.62_all.deb
- wget https://ftp-master.debian.org/keys/archive-key-7.0.asc
install:
- sudo apt-get install pbuilder gnupg piuparts debootstrap debsums python-distro-info
- sudo dpkg -i debootstrap*deb
- sudo dpkg -i pbuilder*deb
- sudo dpkg -i piuparts*deb
- gpg --import $PWD/archive-key-7.0.asc
before_script:
- echo "MIRRORSITE=${MIRROR}" >> ~/.pbuilderrc
- sudo pbuilder create --override-config --distribution ${DIST} --debootstrapopts --keyring=~/.gnupg/pubring.gpg
- mkdir ~/pbuilderhooks
- cp /usr/share/doc/pbuilder/examples/B90lintian ~/pbuilderhooks
- echo "HOOKDIR=$HOME/pbuilderhooks/" >> ~/.pbuilderrc
- echo -n $priv_gpg_{00..30} >> ~/priv_gpg_base64
- base64 --decode --ignore-garbage ~/priv_gpg_base64 > ~/priv_gpg
- gpg --allow-secret-key-import --import ~/priv_gpg
- echo -n $id_rsa_{00..30} >> ~/.ssh/id_rsa_base64
- base64 --decode --ignore-garbage ~/.ssh/id_rsa_base64 > ~/.ssh/id_rsa
- chmod 600 ~/.ssh/id_rsa
- echo -e "Host github.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
- git config --global user.email "[email protected]"
- git config --global user.name "travis-ci"
- git clone [email protected]:bguerin/bguerin.github.io.git ~/bguerin.github.io
script:
- pdebuild --auto-debsign --debsign-k 84D66959 --buildresult ~/bguerin.github.io/debian/incoming/
- sudo piuparts --defaults debian --distribution ${DIST} --mirror ${MIRROR} --pbuilder ~/bguerin.github.io/debian/incoming/rtsp-conntrack-dkms_*_all.deb
after_success:
- cd ~/bguerin.github.io && git add *
- cd ~/bguerin.github.io && git commit -m"New incoming package"
- cd ~/bguerin.github.io && git push