[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [snowflake/master] first stab at gitlab CI build
commit 25b304a9a856f8c791882ad523df26ffc8fa629c
Author: Hans-Christoph Steiner <hans@xxxxxxx>
Date: Tue May 8 10:10:07 2018 +0200
first stab at gitlab CI build
---
.gitlab-ci.yml | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..b7fd956
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,29 @@
+image: golang:1.10-stretch
+
+cache:
+ paths:
+ - .gradle/wrapper
+ - .gradle/caches
+
+before_script:
+ # Create symbolic links under $GOPATH, this is needed for local build
+ - export src=$GOPATH/src
+ - mkdir -p $src/git.torproject.org/pluggable-transports
+ - mkdir -p $src/gitlab.com/$CI_PROJECT_NAMESPACE
+ - ln -s $CI_PROJECT_DIR $src/git.torproject.org/pluggable-transports/snowflake.git
+ - ln -s $CI_PROJECT_DIR $src/gitlab.com/$CI_PROJECT_PATH
+
+build:
+ script:
+ - apt-get -qy update
+ - apt-get -qy install libx11-dev
+ - cd $src/gitlab.com/$CI_PROJECT_PATH/client
+ - go get ./...
+ - go build ./...
+ - go vet ./...
+ - go test -v -race ./...
+
+after_script:
+ # this file changes every time but should not be cached
+ - rm -f $GRADLE_USER_HOME/caches/modules-2/modules-2.lock
+ - rm -fr $GRADLE_USER_HOME/caches/*/plugin-resolution/
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits