Commit 7267f235 authored by Steve Wills's avatar Steve Wills

Add ci file

parent 1b6740cc
Pipeline #201329586 passed with stages
in 31 minutes and 34 seconds
stages:
- build
- bugz
before_script:
- sudo rm -rf /usr/local/etc/poudriere.d/ports/swills-freebsd-ports
- sudo poudriere ports -c -m null -p swills-freebsd-ports -f none -M ${CI_PROJECT_DIR}
- PORT_LIST=$(mktemp) ; git diff --name-only $(git merge-base origin/${CI_COMMIT_REF_NAME} origin/master) origin/${CI_COMMIT_REF_NAME} | egrep '('$(env PORTSDIR=${CI_PROJECT_DIR} make -V SUBDIR | sed -e 's/ /|/g')')' | cut -d/ -f 1,2 | sort -u | sed -e 's/$/@all/' > ${PORT_LIST} ; cat ${PORT_LIST}
head-amd64:
tags:
- FreeBSD
stage: build
script:
- sudo nice -n 18 /usr/sbin/idprio 29 poudriere bulk -C -t -B ${CI_PIPELINE_ID} -j head-amd64 -p swills-freebsd-ports -f ${PORT_LIST}
after_script:
- |
HASH=$(sudo su - ipfs-go -c "/usr/local/bin/ipfs-go add -rwQH --pin=false /usr/local/poudriere/data/packages/head-amd64-swills-freebsd-ports")
REAL=$(ls -a /usr/local/poudriere/data/packages/head-amd64-swills-freebsd-ports/ | grep .real)
echo "Package URL: https://ipfs.io/ipfs/${HASH}/head-amd64-swills-freebsd-ports/${REAL}"
121-amd64:
tags:
- FreeBSD
stage: build
script:
- sudo nice -n 18 /usr/sbin/idprio 29 poudriere bulk -C -t -B ${CI_PIPELINE_ID} -j 121-amd64 -p swills-freebsd-ports -f ${PORT_LIST}
after_script:
- |
HASH=$(sudo su - ipfs-go -c "/usr/local/bin/ipfs-go add -rwQH --pin=false /usr/local/poudriere/data/packages/121-amd64-swills-freebsd-ports")
REAL=$(ls -a /usr/local/poudriere/data/packages/121-amd64-swills-freebsd-ports/ | grep .real)
echo "Package URL: https://ipfs.io/ipfs/${HASH}/121-amd64-swills-freebsd-ports/${REAL}"
114-amd64:
tags:
- FreeBSD
stage: build
script:
- sudo nice -n 18 /usr/sbin/idprio 29 poudriere bulk -C -t -B ${CI_PIPELINE_ID} -j 114-amd64 -p swills-freebsd-ports -f ${PORT_LIST}
after_script:
- |
HASH=$(sudo su - ipfs-go -c "/usr/local/bin/ipfs-go add -rwQH --pin=false /usr/local/poudriere/data/packages/114-amd64-swills-freebsd-ports")
REAL=$(ls -a /usr/local/poudriere/data/packages/114-amd64-swills-freebsd-ports/ | grep .real)
echo "Package URL: https://ipfs.io/ipfs/${HASH}/114-amd64-swills-freebsd-ports/${REAL}"
add-keyword:
tags:
- FreeBSD
allow_failure: true
stage: bugz
script:
- OLDKW=$(bugz get 250292 | { grep Keywords || true ; } | sed -e 's/.*://g' -e 's/,//g' | xargs printf -- '--set-keywords %s ')
- bugz modify ${OLDKW} --set-keywords buildisok 250292
- bugz modify -c "Build and package info is available at ${CI_PROJECT_URL}/pipelines/${CI_PIPELINE_ID}" 250292
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment