]> Sergey Matveev's repositories - btrtrc.git/blobdiff - .circleci/config.yml
Drop support for go 1.20
[btrtrc.git] / .circleci / config.yml
index 31eb3730ce6a8e704e13bc155cc3cfc5cf0423b9..f25b011d42b79f8f0ba122a5773191fbb80e7c49 100644 (file)
@@ -2,8 +2,11 @@ version: 2
 jobs:
   build:
     machine: true
+    # This would be for if we didn't have machine: true. Could help with circleci local execute, which doesn't support VMs?
+    # docker:
+    #   - image: cimg/go:1.13
     environment:
-      GO_BRANCH: release-branch.go1.13
+      GO_BRANCH: release-branch.go1.16
     steps:
       - run: echo $CIRCLE_WORKING_DIRECTORY
       - run: echo $PWD
@@ -11,7 +14,7 @@ jobs:
       - run: echo 'export GOPATH=$HOME/go' >> $BASH_ENV
       - run: echo 'export PATH="$GOPATH/bin:$PATH"' >> $BASH_ENV
       - run: echo $GOPATH
-      - run: which go
+      - run: which go || sudo apt install golang-go
       - run: go version
       - run: |
           cd /usr/local
@@ -44,11 +47,11 @@ jobs:
           keys:
             - go-cache-
       - run: go get -d ./...
-      - run: go test -v -race ./... -count 2 -bench .
+      - run: go test -v -race ./... -count 2
       - run: go test -bench . ./...
       - run: set +e; CGO_ENABLED=0 go test -v ./...; true
-      - run: GOARCH=386 go test ./... -count 2 -bench .
-      - run: go install ./cmd/torrentfs
+      - run: GOARCH=386 go test ./... -count 2 -bench . || true
+      - run: go install github.com/anacrolix/godo@latest
       - save_cache:
           key: go-pkg-{{ checksum "go.mod" }}
           paths: