-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
30 lines (25 loc) · 1.05 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
language: c
before_install:
- sudo apt-get update
install:
- sudo apt-get install gnupg reprepro
before_script:
- 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_dsa_{00..30} >> ~/.ssh/id_dsa_base64
- base64 --decode --ignore-garbage ~/.ssh/id_dsa_base64 > ~/.ssh/id_dsa
- chmod 600 ~/.ssh/id_dsa
- 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"
script:
- files=(debian/incoming/*.changes debian/incoming/*.deb) ; if [ ${#files[@]} -gt 0 ] ; then reprepro -V -b debian processincoming unstable ; fi
after_success:
- git add --all debian/*
- git commit -m"Incoming packages processed [ci skip]"
- git branch incoming-processed
- git checkout master
- git merge incoming-processed
- git branch -d incoming-processed
- git push [email protected]:bguerin/bguerin.github.io.git