-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
5 changed files
with
92 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,3 +20,4 @@ pod-babashka-go-sqlite3 | |
.clj-kondo/ | ||
.nrepl-port | ||
.lsp/ | ||
pod-babashka-go-sqlite3-test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,57 @@ | ||
--- | ||
|
||
version: "v-{build}" | ||
|
||
image: Visual Studio 2019 | ||
|
||
clone_folder: C:\projects\babashka | ||
|
||
environment: | ||
GOPATH: C:\gopath | ||
CGO_ENABLED: 1 | ||
GOVERSION: 119 | ||
--- | ||
|
||
version: "v-{build}" | ||
|
||
image: Visual Studio 2019 | ||
|
||
clone_folder: C:\projects\babashka | ||
|
||
environment: | ||
GOPATH: C:\gopath | ||
CGO_ENABLED: 1 | ||
GOVERSION: 123 | ||
|
||
install: | ||
- set GOROOT=C:\go%GOVERSION% | ||
- set PATH=%GOPATH%\bin;%GOROOT%\bin;%PATH% | ||
- go version | ||
- go env | ||
|
||
cache: | ||
- 'C:/gopath/pkg/mod -> go.sum, appveyor.yml' | ||
|
||
clone_script: | ||
- ps: >- | ||
if(-not $env:APPVEYOR_PULL_REQUEST_NUMBER) { | ||
git clone -q --branch=$env:APPVEYOR_REPO_BRANCH https://github.com/$env:APPVEYOR_REPO_NAME.git $env:APPVEYOR_BUILD_FOLDER | ||
cd $env:APPVEYOR_BUILD_FOLDER | ||
git checkout -qf $env:APPVEYOR_REPO_COMMIT | ||
} else { | ||
git clone -q https://github.com/$env:APPVEYOR_REPO_NAME.git $env:APPVEYOR_BUILD_FOLDER | ||
cd $env:APPVEYOR_BUILD_FOLDER | ||
git fetch -q origin +refs/pull/$env:APPVEYOR_PULL_REQUEST_NUMBER/merge: | ||
git checkout -qf FETCH_HEAD | ||
} | ||
- cmd: git submodule update --init --recursive | ||
|
||
build_script: | ||
|
||
- cmd: >- | ||
set PATH=C:\msys64\mingw64\bin;%PATH% | ||
go build -tags "fts5" -o pod-babashka-go-sqlite3.exe main.go | ||
set /P VERSION=< resources\POD_BABASHKA_GO_SQLITE3_VERSION | ||
jar -cMf pod-babashka-go-sqlite3-%VERSION%-windows-amd64.zip pod-babashka-go-sqlite3.exe | ||
artifacts: | ||
- path: pod-babashka-go-sqlite3-*-windows-amd64.zip | ||
name: pod-babashka-go-sqlite3 | ||
cache: | ||
- 'C:/gopath/pkg/mod -> go.sum, appveyor.yml' | ||
|
||
clone_script: | ||
- ps: >- | ||
if(-not $env:APPVEYOR_PULL_REQUEST_NUMBER) { | ||
git clone -q --branch=$env:APPVEYOR_REPO_BRANCH https://github.com/$env:APPVEYOR_REPO_NAME.git $env:APPVEYOR_BUILD_FOLDER | ||
cd $env:APPVEYOR_BUILD_FOLDER | ||
git checkout -qf $env:APPVEYOR_REPO_COMMIT | ||
} else { | ||
git clone -q https://github.com/$env:APPVEYOR_REPO_NAME.git $env:APPVEYOR_BUILD_FOLDER | ||
cd $env:APPVEYOR_BUILD_FOLDER | ||
git fetch -q origin +refs/pull/$env:APPVEYOR_PULL_REQUEST_NUMBER/merge: | ||
git checkout -qf FETCH_HEAD | ||
} | ||
- cmd: git submodule update --init --recursive | ||
|
||
build_script: | ||
|
||
- cmd: >- | ||
set PATH=C:\msys64\mingw64\bin;%PATH% | ||
go build -tags "fts5" -o pod-babashka-go-sqlite3.exe main.go | ||
set /P VERSION=< resources\POD_BABASHKA_GO_SQLITE3_VERSION | ||
jar -cMf pod-babashka-go-sqlite3-%VERSION%-windows-amd64.zip pod-babashka-go-sqlite3.exe | ||
powershell -Command "if (Test-Path('bb.exe')) { return } else { (New-Object Net.WebClient).DownloadFile('https://github.com/babashka/babashka-dev-builds/releases/download/v1.0.169-SNAPSHOT/babashka-1.0.169-SNAPSHOT-windows-amd64.zip', 'bb.zip') }" | ||
powershell -Command "if (Test-Path('bb.exe')) { return } else { Expand-Archive bb.zip . }" | ||
call bb test/script.clj | ||
artifacts: | ||
- path: pod-babashka-go-sqlite3-*-windows-amd64.zip | ||
name: pod-babashka-go-sqlite3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
#!/usr/bin/env bash | ||
|
||
go build -tags "fts5" -o pod-babashka-go-sqlite3-test main.go && test/script.clj | ||
# go build -tags "fts5" -o pod-babashka-go-sqlite3-test main.go | ||
test/script.clj |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters