commit 38f5493097ed50bb84f961d24da4cb4e8c010fc1 Author: Cecylia Bocovich cohosh@torproject.org Date: Tue Aug 4 16:11:58 2020 -0400
Update .gitlab-ci.yml --- .gitlab-ci.yml | 28 ++++------------------------ 1 file changed, 4 insertions(+), 24 deletions(-)
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b7fd956..21a0218 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,29 +1,9 @@ -image: golang:1.10-stretch - -cache: - paths: - - .gradle/wrapper - - .gradle/caches +image: node:8
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 + - npm install
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/ + - npm run lint + - npm run test
tor-commits@lists.torproject.org