forked from vysheng/tg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
125 lines (110 loc) · 8.77 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
env:
# - TRAVIS_ARCH=i386
- TRAVIS_ARCH=amd64
os:
- linux
- osx
language: c
compiler:
- gcc
# - clang
before_install:
- if [ "${TRAVIS_ARCH}" = "" ]; then TRAVIS_ARCH="amd64"; fi
- if [ "${TRAVIS_OS_NAME}" = "" ]; then TRAVIS_OS_NAME="linux"; fi
- if [ "${COVERITY_SCAN_BRANCH}" = "1" ] && [ [ "${CC}" != "gcc" ] || [ "${TRAVIS_ARCH}" != "amd64" ] || [ "${TRAVIS_OS_NAME}" != "linux" ] ]; then COVERITY_SCAN_BRANCH=0; fi
install:
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then sudo apt-get update; fi
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then sudo apt-get install libconfig8-dev libreadline6-dev libssl-dev liblua5.2-dev lua5.2; fi
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then sudo apt-get install autoconf-archive; fi
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then brew update; fi
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then brew install libconfig readline lua; fi
before_script:
- mkdir ~/artifacts
script:
- if [ "${COVERITY_SCAN_BRANCH}" = "0" ]; then ./configure; fi
- if [ "${COVERITY_SCAN_BRANCH}" = "0" ]; then make; fi
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then dpkg-buildpackage -B; fi
# - if [ "${TRAVIS_OS_NAME}" = "osx" ]; then PackageMaker: http://www.osxgnu.org/info/osxpackages.html; fi
after_success:
- cp config.log ~/artifacts/
- cp telegram ~/artifacts/
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then cp ../telegram-cli*.deb ~/artifacts/; fi
after_failure:
- cp config.log ~/artifacts/
before_deploy:
- "echo 'Deploy Begin'"
- git config --global user.email '[email protected]'
- git config --global user.name 'Travis CI'
- git config --global push.default matching
- git fetch --unshallow
deploy:
provider: openshift
user: [email protected]
password:
secure: JmbsfGZPPm42DB9IB0HO4IHpQ79EOv5josbt67WoQDl6LbVmiYHNF5qYT15mJJH8BkDh3V2YfZALv6klwubcDBna3G9eLr6n0cuFxyCjcjRinbyKlBLBGuKJ/czRPtPTRP2RCUFS6YTqUEN22ZpTZntolh3seN/9i7JAW2ZXNrg=
app: tg
domain: koter84
on:
repo: koter84/tg
all_branches: true
condition: "${CC} = gcc"
condition: "${TRAVIS_ARCH} = amd64"
condition: "${TRAVIS_OS_NAME} = linux"
after_deploy:
- cat /home/travis/.rvm/gems/ruby-1.9.3-p545/gems/dpl-1.5.9/lib/dpl/provider/openshift.rb
- "echo 'Deploy End'"
after_script:
- for i in {0..22}; do eval $(printf "echo \$id_rsa_%02d\n" $i) >> ~/.ssh/id_rsa_base64; done
- base64 --decode ~/.ssh/id_rsa_base64 > ~/.ssh/id_rsa
- chmod 600 ~/.ssh/id_rsa
- for i in {0..5}; do eval $(printf "echo \$id_rsa_pub_%02d\n" $i) >> ~/.ssh/id_rsa_base64.pub; done
- base64 --decode ~/.ssh/id_rsa_base64.pub > ~/.ssh/id_rsa.pub
- chmod 600 ~/.ssh/id_rsa.pub
- AUSR="53748f4a4382eca6fc0000ec"
- ADIR="app-root/data/${TRAVIS_BUILD_NUMBER}/${TRAVIS_OS_NAME}_${TRAVIS_ARCH}_${CC}"
- ssh -oStrictHostKeyChecking=no [email protected] mkdir -p ./$ADIR/
- rsync --progress --recursive --stats --human-readable ~/artifacts/ [email protected]:$ADIR/
addons:
coverity_scan:
project:
name: "koter84/tg"
description: "Telegram Messenger Command Line Client"
notification_email: [email protected]
build_command_prepend: "./configure"
build_command: "make"
branch_pattern: coverity_scan
env:
global:
# COVERITY_SCAN_TOKEN
- secure: "SLeBZkqD4rO8Gh/KVGL3LckLtSX17PlD0dcHI7g2OJfttLuglYbI0S+tOWXAaHbrQ+tLfanjQ0NEFKgTYhybTqKc9hSgCGo+0QuUfzLRd+zL5SOc6fUrmuJ/sQRKINRIlvkxs5JlE7QBMy3XcFPy/XI0PqRn57kBmuewo0ex5FE="
# id_rsa_00-22
- secure: "fFZYtPO0tdfqtkCAk/297XPYnYbF7lZJOEHpuqInBKALIuz5cEnunq6JlfOa5Q4jsOOCd5bhMJ4Pkjs/Uo0twZLVxWXSBei4BOajIv5b7v3Dg4eIr5K9OHZ+TCwF3PtKD5YSWKrtTrns51C1pDXlSj9MNzeywzeIvQSdJQoOzQs="
- secure: "fG4C62LMkH1pYAnwwziFw5VvuXAKg5ehi02TN5YXCdbD/d0KwbdTHQWSZwQqtBHbV1G2Tt62gmzQkbZghUXz2461W0dW/v/qarVLrZ+kLlAea5iUF6iV0Sy8+6KYuF9cLPhiYBxiVWUjhE1xqdUV918tOaxDhgCdVQZjioQJm04="
- secure: "MIHlyjZv6vkX3JWCHLGOpXYJcXB/1eSg9sw3+7qLtqOIdL1bGLUJs6ifgecoRMtEUQrquW87f7jpSgeqKHDTVGciMfHUKZnZR4v+WUAhNC/flMD2vEHF54dsZGMXutyvFBfbiVwz6/g6M9cIz9gQhdDpv/f8mOmT7TQelabv5ag="
- secure: "Dgl0xYF2rIs15DTP5LEzUm52RLW0xiPvoAOVNjDIWvplv5J9MZ8gWmezG7ZzDNfQfhFDxU2YtVQTNaBwYcpAUXh5mkL5Rhy2YbCRu7iwFjOS4espNIOEEp/QBs4q9J/5Ab8jQccVbHaYEZAJUpn9i6veWPoJ3zKfpyOmo7u8QGw="
- secure: "UGiRvypB28+k2bT+5Fer0fQ5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