mirror of
https://github.com/Ysurac/openmptcprouter.git
synced 2025-02-12 11:21:55 +00:00
Add file for cirlceci
This commit is contained in:
parent
f2daa29359
commit
f1c8fd5e10
1 changed files with 32 additions and 0 deletions
32
circle.yml
Normal file
32
circle.yml
Normal file
|
@ -0,0 +1,32 @@
|
|||
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 -j2 :
|
||||
timeout: 7200
|
||||
- sh build.sh package/{compile,install,index} -j2 :
|
||||
timeout: 7200
|
||||
cache_directories:
|
||||
- "source"
|
||||
- "feeds"
|
||||
|
||||
compile:
|
||||
override:
|
||||
- make -C source target/install -j2 :
|
||||
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 -s -p $OMR_DEPLOY_PORT" deploy@$OMR_DEPLOY_HOST:deploy/$OMR_PATH
|
Loading…
Reference in a new issue