Add go.mod file
This commit is contained in:
parent
15e5fc9452
commit
88086c5b47
@ -13,17 +13,17 @@ packages:
|
||||
- build-essential
|
||||
|
||||
tasks:
|
||||
- install go: |
|
||||
- install_go: |
|
||||
SECONDS=0
|
||||
|
||||
wget https://golang.org/dl/go1.16.4.linux-amd64.tar.gz
|
||||
rm -rf /usr/local/go && tar -C /usr/local -xzf go1.16.4.linux-amd64.tar.gz
|
||||
export PATH=$PATH:/usr/local/go/bin
|
||||
sudo tar -C /usr/local -xzf go1.16.4.linux-amd64.tar.gz
|
||||
sudo ln -s /usr/local/go/bin/go /usr/bin/go
|
||||
|
||||
duration=$SECONDS
|
||||
echo "Task completed in $(($duration / 60))m$(($duration % 60))s."
|
||||
|
||||
- run tests: |
|
||||
- run_tests: |
|
||||
cd twitter_offline_engine/scraper
|
||||
|
||||
go test -bench=.
|
||||
|
Loading…
x
Reference in New Issue
Block a user