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