#!/bin/bash
set -x
set -eu

PROJECT_NAME="router"

bundle install --path "${HOME}/bundles/${JOB_NAME}"

source ./build_gopath.sh
go build -v -o ${PROJECT_NAME}

go test ./triemux
USE_COMPILED_ROUTER=1 bundle exec rspec

bundle exec fpm \
  -s dir -t deb \
  -n ${PROJECT_NAME} -v 0.${BUILD_NUMBER} \
  --prefix /usr/bin \
  ${PROJECT_NAME}

#!/bin/bash
set -x
set -eu

PROJECT_NAME="router"

bundle install --path "${HOME}/bundles/${JOB_NAME}"

source ./build_gopath.sh
go build -v -o ${PROJECT_NAME}

go test ./triemux
USE_COMPILED_ROUTER=1 bundle exec rspec

Disable FPM packaging for the moment
Disable FPM packaging for the moment

Until we can sign and stuff these packages into an APT repo, it will be
problematic/impossible to install these in a safe way - without blanket sudo
access, for example. So disable package creation for the moment. We'll just
store the raw binary.
