Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Commit

Permalink
Put build script into different file
Browse files Browse the repository at this point in the history
  • Loading branch information
sargun committed May 1, 2018
1 parent 545f730 commit 4c42545
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 23 deletions.
23 changes: 23 additions & 0 deletions .buildkite/build.sh
@@ -0,0 +1,23 @@
#!/usr/bin/env bash

export
set -uex -o pipefail

mkdir -p ${BUILDKITE_BUILD_CHECKOUT_PATH}/.tmp
mv -v ${BUILDKITE_BUILD_CHECKOUT_PATH}/* ${BUILDKITE_BUILD_CHECKOUT_PATH}/.tmp/

# This should clean the path
rm -rv ${BUILDKITE_BUILD_CHECKOUT_PATH}/* || true
mkdir -p ${BUILDKITE_BUILD_CHECKOUT_PATH}/src/github.com/Netflix/titus-executor/
mv ${BUILDKITE_BUILD_CHECKOUT_PATH}/.tmp/* ${BUILDKITE_BUILD_CHECKOUT_PATH}/src/github.com/Netflix/titus-executor/
export GOPATH="${BUILDKITE_BUILD_CHECKOUT_PATH}"
export PATH="/usr/local/go/bin:${GOPATH}/bin:${PATH}"

cd ${GOPATH}/src/github.com/Netflix/titus-executor

go get -u github.com/alecthomas/gometalinter
gometalinter --install
go get -u github.com/kardianos/govendor

make clean
make --output-sync -j16 builder all 2>&1 | tee build.log
24 changes: 1 addition & 23 deletions .buildkite/pipeline.yml
@@ -1,27 +1,5 @@
steps:
- command: |
#!/bin/bash
set -uex -o pipefail
mkdir -p ${BUILDKITE_BUILD_CHECKOUT_PATH}/.tmp
mv -v ${BUILDKITE_BUILD_CHECKOUT_PATH}/* ${BUILDKITE_BUILD_CHECKOUT_PATH}/.tmp/
# This should clean the path
rm -rv ${BUILDKITE_BUILD_CHECKOUT_PATH}/* || true
mkdir -p ${BUILDKITE_BUILD_CHECKOUT_PATH}/src/github.com/Netflix/titus-executor/
mv ${BUILDKITE_BUILD_CHECKOUT_PATH}/.tmp/* ${BUILDKITE_BUILD_CHECKOUT_PATH}/src/github.com/Netflix/titus-executor/
export GOPATH="${BUILDKITE_BUILD_CHECKOUT_PATH}"
export PATH="/usr/local/go/bin:${GOPATH}/bin:${PATH}"
cd ${GOPATH}/src/github.com/Netflix/titus-executor
go get -u github.com/alecthomas/gometalinter
gometalinter --install
go get -u github.com/kardianos/govendor
make clean
make --output-sync -j16 builder all 2>&1 | tee build.log
- command: ./.buildkite/build.sh
artifact_paths: "src/github.com/Netflix/titus-executor/*.log;src/github.com/Netflix/titus-executor/build/distributions/*.deb;src/github.com/Netflix/titus-executor/build/distributions/*.tar;src/github.com/Netflix/titus-executor/build/distributions/*.tar.gz;src/github.com/Netflix/titus-executor/*.out"
- wait
- trigger: titus-upload-debs
Expand Down

0 comments on commit 4c42545

Please sign in to comment.