2018-01-25 09:03:05 +00:00
|
|
|
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
|
2018-02-14 09:28:01 +00:00
|
|
|
- sh build.sh prepare {tools,toolchain}/install -j2 :
|
2018-01-26 18:57:19 +00:00
|
|
|
environment:
|
|
|
|
OMR_TARGET: x86_64
|
2018-01-29 20:17:39 +00:00
|
|
|
OMR_KEEPBIN: yes
|
|
|
|
timeout: 7200
|
2018-02-14 09:28:01 +00:00
|
|
|
- sh build.sh package/{compile,install,preconfig,index} -j2 :
|
2018-01-29 20:17:39 +00:00
|
|
|
timeout: 7200
|
|
|
|
environment:
|
|
|
|
OMR_TARGET: x86_64
|
|
|
|
OMR_KEEPBIN: yes
|
2018-02-21 14:09:20 +00:00
|
|
|
- sh build.sh prepare {tools,toolchain}/install -j2 :
|
|
|
|
environment:
|
|
|
|
OMR_TARGET: rpi3
|
|
|
|
OMR_KEEPBIN: yes
|
2018-01-30 12:27:28 +00:00
|
|
|
timeout: 7200
|
2018-02-14 09:28:01 +00:00
|
|
|
- sh build.sh package/{compile,install,preconfig,index} -j2 :
|
2018-01-30 12:27:28 +00:00
|
|
|
timeout: 7200
|
|
|
|
environment:
|
|
|
|
OMR_TARGET: rpi3
|
|
|
|
OMR_KEEPBIN: yes
|
2018-02-21 14:09:20 +00:00
|
|
|
cache_directories:
|
|
|
|
- "source"
|
|
|
|
- "feeds"
|
|
|
|
|
|
|
|
compile:
|
|
|
|
override:
|
|
|
|
- make -C x86_64/source target/install -j2 :
|
2018-01-30 14:26:33 +00:00
|
|
|
timeout: 7200
|
2018-02-21 14:09:20 +00:00
|
|
|
- make -C rpi3/source target/install -j2 :
|
2018-01-29 20:17:39 +00:00
|
|
|
timeout: 7200
|
|
|
|
|
2018-01-25 09:03:05 +00:00
|
|
|
test:
|
|
|
|
override:
|
|
|
|
- "true"
|
|
|
|
|
|
|
|
deployment:
|
|
|
|
dev:
|
|
|
|
branch: /.*/
|
|
|
|
commands:
|
|
|
|
- ssh -p $OMR_DEPLOY_PORT deploy@$OMR_DEPLOY_HOST mkdir -p deploy/$OMR_PATH
|
2018-02-21 14:09:20 +00:00
|
|
|
- rsync -av --delete-after x86_64/source/bin/ -e "ssh -q -p $OMR_DEPLOY_PORT" deploy@$OMR_DEPLOY_HOST:deploy/dev/x86_64
|
|
|
|
- rsync -av --delete-after rpi3/source/bin/ -e "ssh -q -p $OMR_DEPLOY_PORT" deploy@$OMR_DEPLOY_HOST:deploy/dev/rpi3
|
2018-02-01 13:26:14 +00:00
|
|
|
release:
|
|
|
|
tag: /v[0-9]+(\.[0-9]+)*/
|
|
|
|
commands:
|
|
|
|
- ssh -p $OMR_DEPLOY_PORT deploy@$OMR_DEPLOY_HOST mkdir -p deploy/release
|
2018-02-21 14:09:20 +00:00
|
|
|
- rsync -av --delete-after x86_64/source/bin/ -e "ssh -q -p $OMR_DEPLOY_PORT" deploy@$OMR_DEPLOY_HOST:deploy/release/x86_64
|
|
|
|
- rsync -av --delete-after rpi3/source/bin/ -e "ssh -q -p $OMR_DEPLOY_PORT" deploy@$OMR_DEPLOY_HOST:deploy/release/rpi3
|