mirror of https://github.com/aredn/aredn.git
build: testing new build scripts
This commit is contained in:
parent
45dd094936
commit
96722d980a
|
@ -12,8 +12,10 @@ jobs:
|
|||
name: Update Config.mk
|
||||
command: |
|
||||
export MY_WORKING_DIRECTORY=`pwd`
|
||||
export MY_PROCS=`nprocs`
|
||||
echo "Procs: ${MY_PROCS}"
|
||||
sed -i "s/NoCall/${CIRCLE_BUILD_NUM}/g" ${MY_WORKING_DIRECTORY}/config.mk
|
||||
sed -i "s/MAKE_ARGS=-j3/MAKE_ARGS=-j${DASH_J_VALUE}/g" ${MY_WORKING_DIRECTORY}/config.mk
|
||||
sed -i "s/MAKE_ARGS=-j3/MAKE_ARGS=-j${MY_PROCS}/g" ${MY_WORKING_DIRECTORY}/config.mk
|
||||
cat ${MY_WORKING_DIRECTORY}/config.mk
|
||||
- run:
|
||||
name: Build
|
||||
|
@ -29,7 +31,7 @@ jobs:
|
|||
command: tar -cjf ~/${CIRCLE_BRANCH}_${ARTIFACTS_FILE} -C ${MY_WORKING_DIRECTORY}/${ARTIFACTS_DIR} .
|
||||
- run:
|
||||
name: Deploy Files
|
||||
command: scp -o StrictHostKeyChecking=no ~/${CIRCLE_BRANCH}_${ARTIFACTS_FILE} ${SSH_USER}@${SSH_HOST}:~/
|
||||
command: scp -o StrictHostKeyChecking=no ~/${CIRCLE_BRANCH}_${ARTIFACTS_FILE} ${SSH_USER}@${SSH_HOST}:${TARGET_DIR}
|
||||
check2build:
|
||||
machine:
|
||||
enabled: true
|
||||
|
@ -54,7 +56,7 @@ jobs:
|
|||
steps:
|
||||
- run:
|
||||
name: Untar Files
|
||||
command: ssh ${SSH_USER}@${SSH_HOST} "sh -c 'tar -xjf ~/${CIRCLE_BRANCH}_${ARTIFACTS_FILE} -C ~/'"
|
||||
command: ssh ${SSH_USER}@${SSH_HOST} "sh -c 'tar -xjf ${TARGET_DIR}/${CIRCLE_BRANCH}_${ARTIFACTS_FILE} -C ${TARGET_DIR}'"
|
||||
- run:
|
||||
name: Empty nightly dir
|
||||
command: ssh ${SSH_USER}@${SSH_HOST} "sh -c 'rm -rf ${NIGHTLY_DIR}'"
|
||||
|
@ -63,10 +65,10 @@ jobs:
|
|||
command: ssh ${SSH_USER}@${SSH_HOST} "sh -c 'mkdir -p ${NIGHTLY_DIR}'"
|
||||
- run:
|
||||
name: Move targets
|
||||
command: ssh ${SSH_USER}@${SSH_HOST} "sh -c 'mv ~/targets ${NIGHTLY_DIR}'"
|
||||
command: ssh ${SSH_USER}@${SSH_HOST} "sh -c 'mv ${TARGET_DIR}/targets ${NIGHTLY_DIR}'"
|
||||
- run:
|
||||
name: Move packages
|
||||
command: ssh ${SSH_USER}@${SSH_HOST} "sh -c 'mv ~/packages ${NIGHTLY_DIR}'"
|
||||
command: ssh ${SSH_USER}@${SSH_HOST} "sh -c 'mv ${TARGET_DIR}/packages ${NIGHTLY_DIR}'"
|
||||
|
||||
changelog_nightly:
|
||||
machine:
|
||||
|
|
Loading…
Reference in New Issue