File: gobuild.sh

package info (click to toggle)
influxdb 1.1.1%2Bdfsg1-4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 7,712 kB
  • sloc: sh: 1,231; python: 804; ruby: 118; makefile: 100
file content (18 lines) | stat: -rwxr-xr-x 442 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash
# This script run inside the Dockerfile_build_ubuntu64_git container and
# gets the latests Go source code and compiles it.
# Then passes control over to the normal build.py script

set -e

cd /go/src
git fetch --all
git checkout $GO_CHECKOUT
# Merge in recent changes if we are on a branch
# if we checked out a tag just ignore the error
git pull || true
./make.bash

# Run normal build.py
cd "$PROJECT_DIR"
exec ./build.py "$@"