-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
53 lines (42 loc) · 1.15 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
46
47
48
49
50
51
language: c
os:
- linux
dist:
- trusty
compiler:
- gcc
script: make hello_world
deploy:
- provider: script
skip_cleanup: true
script: ./updateYUViewPKGBUILDVersion.sh
on:
branch: master
before_deploy:
- openssl aes-256-cbc -K $encrypted_0ac51efc6383_key -iv $encrypted_0ac51efc6383_iv
-in deploy_rsa.enc -out /tmp/deploy_rsa -d
- eval "$(ssh-agent -s)"
- chmod 600 /tmp/deploy_rsa
- ssh-add /tmp/deploy_rsa
addons:
ssh_known_hosts: aur.archlinux.org
# deploy:
# - echo "Cd to tmp"
# - cd /tmp
# - echo "Cloning aur pkg"
# - git clone git+ssh://aur.archlinux.org/yuview-git.git
# - cd yuview-git
# # get the new version:
# - echo "Cloning YUView"
# - git clone https://github.com/IENT/YUView
# - cd YUView
# - new_version=$(printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)")
# - echo ${new_version}
# - cd ..
# - echo "Updated version in files"
# - sed -i "s/pkgver=.*$/pkgver=${new_version}/" PKGBUILD
# - sed -i "s/pkgver = .*$/pkgver = ${new_version}/" .SRCINFO
# - echo "commiting and pushing new version"
# - git add -u
# - git commit -m "updated package version"
# - git push