1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter.git synced 2025-02-12 19:31:52 +00:00
openmptcprouter/.travis.yml

28 lines
1.2 KiB
YAML
Raw Normal View History

2018-01-29 17:13:17 +00:00
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
2018-01-30 07:37:40 +00:00
- 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="x86_64" OMR_KEEPBIN="yes" travis_wait 120 sh build.sh package/{compile,install,index} -j6
- OMR_TARGET="rpi3" OMR_KEEPBIN="yes" travis_wait 120 sh build.sh package/{compile,install,index} -j6
2018-01-29 17:13:17 +00:00
cache:
directories:
- source
- feeds
script:
2018-01-30 07:37:40 +00:00
- OMR_TARGET="x86_64" travis_wait 240 sh build.sh target/install -j6
- OMR_TARGET="rpi3" OMR_KEEPBIN="yes" travis_wait 240 sh build.sh target/install -j6
2018-01-29 17:13:17 +00:00
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