-
Notifications
You must be signed in to change notification settings - Fork 1
/
.cirrus.yml
25 lines (24 loc) · 1.01 KB
/
.cirrus.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
freebsd_instance:
image_family: freebsd-13-0
cpu: 1
memory: 1G
task:
name: freebsd_13 (clang)
skip: "!changesInclude('.cirrus.yml', 'Makefile', 'src/**')"
install_script: pkg install -y git gmake jansson curl e2fsprogs-libuuid
clone_script: |
if [ -z "$CIRRUS_PR" ]; then
git clone https://x-access-token:${CIRRUS_REPO_CLONE_TOKEN}@github.com/${CIRRUS_REPO_FULL_NAME}.git $CIRRUS_WORKING_DIR
git reset --hard $CIRRUS_CHANGE_IN_REPO
else
git clone https://x-access-token:${CIRRUS_REPO_CLONE_TOKEN}@github.com/${CIRRUS_REPO_FULL_NAME}.git $CIRRUS_WORKING_DIR
git fetch origin pull/$CIRRUS_PR/head:pull/$CIRRUS_PR
git reset --hard $CIRRUS_CHANGE_IN_REPO
fi
script: |
git clone https://github.com/ac000/libmtdac.git ${CIRRUS_WORKING_DIR}/libmtdac
cd ${CIRRUS_WORKING_DIR}/libmtdac/src
gmake CC=clang
export LD_LIBRARY_PATH=`pwd`
cd -
CFLAGS="-I${CIRRUS_WORKING_DIR}/libmtdac/include -Werror" LDFLAGS=-L${CIRRUS_WORKING_DIR}/libmtdac/src gmake CC=clang V=1