Build phars with travis ci
This commit is contained in:
parent
e58e99a37a
commit
46b48ab563
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
||||
JSON.sh
|
||||
halloween
|
||||
*.raw
|
||||
SocksProxy.php
|
||||
|
@ -1,2 +1,8 @@
|
||||
language: php
|
||||
php:
|
||||
- '7.1'
|
||||
|
||||
before_install: echo "phar.readonly = 0" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
|
||||
|
||||
script:
|
||||
- curl https://api.rollbar.com/api/1/deploy/ -F access_token=f9fff6689aea4905b58eec73f66c791d -F environment=production -F revision=`git log -n 1 --pretty=format:"%H"` -F local_username=$USER
|
||||
- tests/makephar.sh
|
||||
|
14
tests/makephar.sh
Executable file
14
tests/makephar.sh
Executable file
@ -0,0 +1,14 @@
|
||||
#!/bin/sh -e
|
||||
|
||||
php makephar.php
|
||||
|
||||
[ -d JSON.sh ] || git clone https://github.com/dominictarr/JSON.sh
|
||||
|
||||
for chat_id in $destinations;do
|
||||
ID=$(curl https://api.telegram.org/bot$token/sendMessage -F text=" <b>Recent Commits to MadelineProto:master</b>
|
||||
<a href=\"https://github.com/danog/MadelineProto/commit/$TRAVIS_COMMIT\">$TRAVIS_COMMIT_MESSAGE</a>
|
||||
|
||||
$TRAVIS_COMMIT_MESSAGE" -F parse_mode="HTML" -F chat_id=$chat_id | JSON.sh/JSON.sh -s | egrep '\["result","message_id"\]' | cut -f 2 | cut -d '"' -f 2)
|
||||
curl https://api.telegram.org/bot$token/sendDocument -F caption="md5: $(md5sum madeline.phar | sed 's/\s.*//g')
|
||||
commit: $TRAVIS_COMMIT" -F chat_id=$chat_id -F document=@madeline.phar -F reply_to_message_id=$ID
|
||||
done
|
Loading…
Reference in New Issue
Block a user