aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/ci12
1 files changed, 7 insertions, 5 deletions
diff --git a/scripts/ci b/scripts/ci
index 11e544e..a05ef7c 100755
--- a/scripts/ci
+++ b/scripts/ci
@@ -1,11 +1,13 @@
#!/bin/bash
-source /etc/environment
-mkdir -p .tmp.gopath
-mkdir -p target/
-export GOPATH=$(pwd)/.tmp.gopath
+mkdir -p ../.gopath
+mkdir -p target
+mkdir -p .tmp
+export GOPATH=$(dirname $(pwd))/.gopath
export SHORTHEAD=${HEAD:0:7}
export VERSION=$(awk '/^Version:/ { print $2 }' deb/DEBIAN/control | sed -E 's/\-[0-9]+$//')
+export CGO_ENABLED=0
+
echo "Compiling for linux/amd64"
go build -o "target/$PROJECT_NAME-linux-amd64"
echo "Compiling for linux/386"
@@ -22,7 +24,7 @@ mkdir -p deb/usr/bin/
cp target/$PROJECT_NAME-linux-amd64 deb/usr/bin/gomuks
-git clone https://github.com/tulir/tcell.git .tmp.tcell
+git clone https://github.com/tulir/tcell.git .tmp/tcell
mkdir -p deb/usr/share/tcell/
rm -rf deb/usr/share/tcell/database
cp -r .tmp.tcell/terminfo/database deb/usr/share/tcell