mirror of
https://github.com/Ysurac/openmptcprouter.git
synced 2025-02-12 11:21:55 +00:00
Try to add travis ci support
This commit is contained in:
parent
890ce35444
commit
dc736f4f70
2 changed files with 22 additions and 0 deletions
22
.travis.yml
Normal file
22
.travis.yml
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
sudo: false
|
||||||
|
language: c
|
||||||
|
compiler: gcc
|
||||||
|
before_script:
|
||||||
|
- sudo apt-get update
|
||||||
|
- sudo apt-get install -yq build-essential git unzip ncurses-dev libz-dev libssl-dev python subversion gettext gawk wget curl rsync perl
|
||||||
|
cache:
|
||||||
|
directories:
|
||||||
|
- source
|
||||||
|
- feeds
|
||||||
|
script:
|
||||||
|
- sh build.sh -j4
|
||||||
|
before_deploy:
|
||||||
|
- openssl aes-256-cbc -K $encrypted_fb4fbc400178_key -iv $encrypted_fb4fbc400178_iv -in deploy_rsa.enc -out /tmp/deploy_rsa -d
|
||||||
|
- eval "$(ssh-agent -s)"
|
||||||
|
- chmod 600 /tmp/deploy_rsa
|
||||||
|
- ssh-add /tmp/deploy_rsa
|
||||||
|
deploy:
|
||||||
|
- provider: script
|
||||||
|
script: rsync -av --delete-after source/bin/ -e "ssh -s -p $OMR_DEPLOY_PORT" deploy@$OMR_DEPLOY_HOST:deploy/travisci
|
||||||
|
on:
|
||||||
|
branch: master
|
BIN
deploy_rsa.enc
Normal file
BIN
deploy_rsa.enc
Normal file
Binary file not shown.
Loading…
Reference in a new issue