forked from Ysurac/openmptcprouter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
28 lines (28 loc) · 1.25 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
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