summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuben Pollan <meskio@sindominio.net>2018-06-12 19:24:13 +0200
committerRuben Pollan <meskio@sindominio.net>2018-06-12 20:19:56 +0200
commita154c2b3b12a1eb61580729fd7d66025b5b4ebf6 (patch)
tree0ddd5271a8eebed6c7837d27d6f45266dd91b483
parent909c059c7c0cc4e38d326afe377be7e6fb8385c0 (diff)
[pkg] compile for gtk_3_18 or older
- Resolves: #45
-rw-r--r--.gitlab-ci.yml4
-rw-r--r--Makefile12
2 files changed, 11 insertions, 5 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index d72274a..be71505 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -15,8 +15,8 @@ build_test:
- mkdir -p /go/src/0xacab.org/leap/
- ln -s "$(pwd)" ${APP_PATH}
- cd ${APP_PATH}
- - go get .
- - go test ./...
+ - make get
+ - make test
- make build
tags:
- linux
diff --git a/Makefile b/Makefile
index 696fcea..33a2d6c 100644
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,15 @@
-.PHONY: all build icon locales generate_locales clean
+.PHONY: all get build icon locales generate_locales clean
-all: icon locales build
+all: icon locales get build
+
+get:
+ go get -tags 'gtk_3_18' .
build:
- go build -ldflags "-X main.version=`git describe --tags`"
+ go build -tags 'gtk_3_18' -ldflags "-X main.version=`git describe --tags`"
+
+test:
+ go test -tags 'gtk_3_18' ./...
clean:
make -C icon clean