Use properly packaged Tor for .drone scripts
continuous-integration/drone/pr Build is failing Details

This commit is contained in:
Sarah Jamie Lewis 2024-01-02 14:42:34 -08:00
parent 5714d6f1d9
commit f9b3ff1837
1 changed files with 11 additions and 15 deletions

View File

@ -12,12 +12,11 @@ steps:
commands: commands:
- go install honnef.co/go/tools/cmd/staticcheck@latest - go install honnef.co/go/tools/cmd/staticcheck@latest
- go install go.uber.org/nilaway/cmd/nilaway@latest - go install go.uber.org/nilaway/cmd/nilaway@latest
- apt update - wget https://git.openprivacy.ca/openprivacy/buildfiles/raw/branch/master/tor/tor-0.4.8.9-linux-x86_64.tar.gz -O tor.tar.gz
- apt install libevent-2.1-7 - tar -xzf tor.tar.gz
- wget https://git.openprivacy.ca/openprivacy/buildfiles/raw/master/tor/tor - chmod a+x Tor/tor
- wget https://git.openprivacy.ca/openprivacy/buildfiles/raw/master/tor/torrc - export PATH=$PWD/Tor/:$PATH
- chmod a+x tor - export LD_LIBRARY_PATH=$PWD/Tor/
- export PATH=`pwd`:$PATH
- tor --version - tor --version
- export GO111MODULE=on - export GO111MODULE=on
- name: quality - name: quality
@ -41,9 +40,8 @@ steps:
- name: deps - name: deps
path: /go path: /go
commands: commands:
- apt update - export PATH=$PWD/Tor/:$PATH
- apt install libevent-2.1-7 - export LD_LIBRARY_PATH=$PWD/Tor/
- export PATH=`pwd`:$PATH
- tor --version - tor --version
- go test -timeout=30m -race -v cwtch.im/cwtch/testing/ - go test -timeout=30m -race -v cwtch.im/cwtch/testing/
- name: filesharing-integ-test - name: filesharing-integ-test
@ -52,9 +50,8 @@ steps:
- name: deps - name: deps
path: /go path: /go
commands: commands:
- apt update - export PATH=$PWD/Tor/:$PATH
- apt install libevent-2.1-7 - export LD_LIBRARY_PATH=$PWD/Tor/
- export PATH=`pwd`:$PATH
- go test -timeout=20m -race -v cwtch.im/cwtch/testing/filesharing - go test -timeout=20m -race -v cwtch.im/cwtch/testing/filesharing
- name: filesharing-autodownload-integ-test - name: filesharing-autodownload-integ-test
image: golang:1.21.5-bookworm image: golang:1.21.5-bookworm
@ -62,9 +59,8 @@ steps:
- name: deps - name: deps
path: /go path: /go
commands: commands:
- apt update - export PATH=$PWD/Tor/:$PATH
- apt install libevent-2.1-7 - export LD_LIBRARY_PATH=$PWD/Tor/
- export PATH=`pwd`:$PATH
- go test -timeout=20m -race -v cwtch.im/cwtch/testing/autodownload - go test -timeout=20m -race -v cwtch.im/cwtch/testing/autodownload
- name: notify-gogs - name: notify-gogs
image: openpriv/drone-gogs image: openpriv/drone-gogs