1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter.git synced 2025-02-12 11:21:55 +00:00
openmptcprouter/.travis.yml
2018-01-30 13:31:07 +01:00

28 lines
1.3 KiB
YAML

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
- OMR_TARGET="x86_64" OMR_KEEPBIN="yes" travis_wait 120 sh build.sh prepare {tools,toolchain}/install -j6
- OMR_TARGET="rpi3" OMR_KEEPBIN="yes" travis_wait 120 sh build.sh prepare {tools,toolchain}/install -j6
- OMR_TARGET="rpi3" OMR_KEEPBIN="yes" travis_wait 120 sh build.sh package/{compile,install,index} -j6
cache:
directories:
- source
- feeds
script:
- OMR_TARGET="x86_64" OMR_KEEPBIN="yes" travis_wait 120 sh build.sh package/{compile,install,index} -j6
- travis_wait 240 sh make -C source target/install -j6
- OMR_TARGET="rpi3" OMR_KEEPBIN="yes" travis_wait 120 sh build.sh package/{compile,install,index} -j6
- travis_wait 240 make -C source target/install -j6
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