From 6a63eefe8fb1f6dd2c1983dd01f5d488e240f3bb Mon Sep 17 00:00:00 2001 From: mapsam Date: Wed, 22 Nov 2017 16:20:26 -0800 Subject: [PATCH 1/2] spatial algorithms cdda174 --- .../spatial-algorithms/cdda174/.travis.yml | 0 scripts/spatial-algorithms/cdda174/script.sh | 33 +++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 scripts/spatial-algorithms/cdda174/.travis.yml create mode 100644 scripts/spatial-algorithms/cdda174/script.sh diff --git a/scripts/spatial-algorithms/cdda174/.travis.yml b/scripts/spatial-algorithms/cdda174/.travis.yml new file mode 100644 index 000000000..e69de29bb diff --git a/scripts/spatial-algorithms/cdda174/script.sh b/scripts/spatial-algorithms/cdda174/script.sh new file mode 100644 index 000000000..64c4cfa28 --- /dev/null +++ b/scripts/spatial-algorithms/cdda174/script.sh @@ -0,0 +1,33 @@ +#!/usr/bin/env bash + +MASON_NAME=spatial-algorithms +MASON_VERSION=cdda174 +MASON_HEADER_ONLY=true + +. ${MASON_DIR}/mason.sh + +function mason_load_source { + mason_download \ + https://github.com/mapbox/${MASON_NAME}/tarball/${MASON_VERSION} \ + 1f0c5a41c42a33295dc251ef540ce6f6c1e8d5da + + mason_extract_tar_gz + + export MASON_BUILD_PATH=${MASON_ROOT}/.build/mapbox-${MASON_NAME}-${MASON_VERSION} +} + +function mason_compile { + mkdir -p ${MASON_PREFIX}/include/ + cp -r include/mapbox ${MASON_PREFIX}/include/mapbox + cp -r include/boost ${MASON_PREFIX}/include/boost +} + +function mason_cflags { + echo "-I${MASON_PREFIX}/include" +} + +function mason_ldflags { + : +} + +mason_run "$@" From f4c9c09509b6a07568398e1f53dcd1d3ddcd9458 Mon Sep 17 00:00:00 2001 From: mapsam Date: Mon, 27 Nov 2017 10:19:18 -0800 Subject: [PATCH 2/2] travis file --- scripts/spatial-algorithms/cdda174/.travis.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/scripts/spatial-algorithms/cdda174/.travis.yml b/scripts/spatial-algorithms/cdda174/.travis.yml index e69de29bb..00c277c21 100644 --- a/scripts/spatial-algorithms/cdda174/.travis.yml +++ b/scripts/spatial-algorithms/cdda174/.travis.yml @@ -0,0 +1,11 @@ +language: generic + +matrix: + include: + - os: linux + compiler: clang + sudo: false + +script: +- ./mason build ${MASON_NAME} ${MASON_VERSION} +- ./mason publish ${MASON_NAME} ${MASON_VERSION}