1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter.git synced 2025-02-13 03:41:54 +00:00
openmptcprouter/circle.yml
2018-02-01 14:26:14 +01:00

59 lines
2 KiB
YAML

machine:
timezone: Europe/Paris
environment:
OMR_PATH: $CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME/$CIRCLE_BRANCH
dependencies:
override:
- 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
- sh build.sh prepare {tools,toolchain}/install -j4 :
environment:
OMR_TARGET: x86_64
OMR_KEEPBIN: yes
timeout: 7200
- sh build.sh prepare {tools,toolchain}/install -j4 :
environment:
OMR_TARGET: rpi3
OMR_KEEPBIN: yes
timeout: 7200
cache_directories:
- "source"
- "feeds"
compile:
override:
- sh build.sh package/{compile,install,preconfig,index} -j4 :
timeout: 7200
environment:
OMR_TARGET: x86_64
OMR_KEEPBIN: yes
- make -C source target/install -j4 :
timeout: 7200
- sh build.sh package/{compile,install,preconfig,index} -j4 :
timeout: 7200
environment:
OMR_TARGET: rpi3
OMR_KEEPBIN: yes
- make -C source target/compile -j4 :
timeout: 7200
- make -C source package/compile -j4 :
timeout: 7200
- make -C source target/install -j4 :
timeout: 7200
test:
override:
- "true"
deployment:
dev:
branch: /.*/
commands:
- ssh -p $OMR_DEPLOY_PORT deploy@$OMR_DEPLOY_HOST mkdir -p deploy/$OMR_PATH
- rsync -av --delete-after source/bin/ -e "ssh -q -p $OMR_DEPLOY_PORT" deploy@$OMR_DEPLOY_HOST:deploy/$OMR_PATH
release:
tag: /v[0-9]+(\.[0-9]+)*/
commands:
- ssh -p $OMR_DEPLOY_PORT deploy@$OMR_DEPLOY_HOST mkdir -p deploy/release
- rsync -av --delete-after source/bin/ -e "ssh -q -p $OMR_DEPLOY_PORT" deploy@$OMR_DEPLOY_HOST:deploy/release