forked from getlantern/lantern
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request getlantern#3378 from getlantern/valencia_ox
Build/README updates
- Loading branch information
Showing
6 changed files
with
142 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/sh | ||
|
||
# Git pre-push hook for the Lantern project | ||
# Maintainer: Ulysses Aalto <[email protected]> | ||
# | ||
# Installation: Copy into .git/hooks/pre-push | ||
|
||
|
||
# Exit immediately if a command exits with a non-zero status. | ||
set -e | ||
|
||
# Find only modified files/directories | ||
export MODIFIED_DIRS=$(git status --porcelain | \ | ||
awk 'match($1, "M") && match($2, "src/github.com/getlantern/*"){print $2}' | \ | ||
sed 's+src/github.com/getlantern/++g' | \ | ||
sed 's+/.*++' | \ | ||
uniq) | ||
|
||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | ||
$DIR/prehook.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/sh | ||
|
||
# Git pre-push hook for the Lantern project | ||
# Maintainer: Ulysses Aalto <[email protected]> | ||
# | ||
# Installation: Symlink or copy into .git/hooks/pre-push | ||
|
||
|
||
# Exit immediately if a command exits with a non-zero status. | ||
set -e | ||
|
||
# Find only modified files/directories | ||
BRANCH=`git rev-parse --abbrev-ref HEAD` | ||
export MODIFIED_DIRS=$(git diff --name-status origin/$BRANCH..$BRANCH | \ | ||
awk 'match($1, "M") && match($2, "src/github.com/getlantern/*"){print $2}' | \ | ||
sed 's+src/github.com/getlantern/++g' | \ | ||
sed 's+/.*++' | \ | ||
uniq) | ||
|
||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | ||
$DIR/prehook.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,21 @@ | ||
#!/bin/sh | ||
|
||
# Git pre-push hook for the Lantern project | ||
# Shared pre push/commit hook for the Lantern project | ||
# Maintainer: Ulysses Aalto <[email protected]> | ||
# | ||
# Installation: Copy into .git/hooks/pre-push | ||
# Installation: Symlink or copy into .git/hooks/prehook.sh | ||
|
||
|
||
# Exit immediately if a command exits with a non-zero status. | ||
set -e | ||
|
||
# Find only modified files/directories | ||
MODIFIED_DIRS=$(git status --porcelain | \ | ||
awk 'match($1, "M") && match($2, "src/github.com/getlantern/*"){print $2}' | \ | ||
sed 's+src/github.com/getlantern/++g' | \ | ||
sed 's+/.*++' | \ | ||
uniq) | ||
echo "Running hook -- Analyzing modified packages..." | ||
FOUND_CHANGE=false | ||
for i in $MODIFIED_DIRS; do | ||
echo " * $i"; | ||
FOUND_CHANGE=true; | ||
done | ||
echo | ||
|
||
if [ "$FOUND_CHANGE" = false ]; then | ||
echo "No changes to analyze"; | ||
exit 0; | ||
fi | ||
|
||
cd src/github.com/getlantern | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,6 @@ | |
FROM fedora:22 | ||
MAINTAINER "Ulysses Aalto" <[email protected]> | ||
|
||
ENV GO_VERSION go1.5.1 | ||
ENV GOROOT_BOOTSTRAP /go1.5 | ||
ENV GOROOT /go | ||
ENV GOPATH / | ||
|
@@ -32,15 +31,15 @@ RUN dnf install -y make vim strace tmux && dnf clean all | |
# Install Go. | ||
# 1) 1.5 for bootstrap. | ||
ENV GOROOT_BOOTSTRAP /go1.5 | ||
RUN (curl -sSL https://golang.org/dl/go1.5.1.linux-amd64.tar.gz | tar -vxz -C /tmp) && \ | ||
RUN (curl -sSL https://golang.org/dl/go1.5.2.linux-amd64.tar.gz | tar -vxz -C /tmp) && \ | ||
mv /tmp/go $GOROOT_BOOTSTRAP | ||
|
||
# 2) Download and cross compile the Go on revision GOREV. | ||
# | ||
# GOVERSION string is the output of 'git log -n 1 --format="format: devel +%h %cd" HEAD' | ||
# like in go tool dist. | ||
ENV GO_REV go1.5.1 | ||
ENV GO_VERSION go1.5.1 | ||
ENV GO_REV go1.5.2 | ||
ENV GO_VERSION go1.5.2 | ||
|
||
ENV GOROOT /go | ||
ENV PATH $GOROOT/bin:$PATH | ||
|