mirror of
https://github.com/Ysurac/openmptcprouter.git
synced 2025-02-13 03:41:54 +00:00
26 lines
782 B
YAML
26 lines
782 B
YAML
machine:
|
|
timezone: Europe/Paris
|
|
environment:
|
|
OMR_PATH: $CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME/$CIRCLE_BRANCH
|
|
CPUS: $(grep -c processor /proc/cpuinfo)
|
|
|
|
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
|
|
|
|
compile:
|
|
override:
|
|
- sh build.sh -j$CPUS :
|
|
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
|