-
Notifications
You must be signed in to change notification settings - Fork 664
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Complete migration to SemaphoreCI (#926)
Co-authored-by: Emanuele Sabellico <[email protected]>
- Loading branch information
1 parent
d1bf625
commit 76b1c0d
Showing
9 changed files
with
139 additions
and
165 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
bash -lc './mk/mingw-w64/semaphore_commands.sh' |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
if [ "$EXPECT_LINK_INFO" = "dynamic" ]; then export GO_TAGS="-tags dynamic"; bash mk/bootstrap-librdkafka.sh ${LIBRDKAFKA_VERSION} tmp-build; fi | ||
for dir in kafka examples ; do (cd $dir && go install $GO_TAGS ./...) ; done | ||
if [[ -f .do_lint ]]; then golint -set_exit_status ./examples/... ./kafka/... ./kafkatest/... ./soaktest/... ./schemaregistry/...; fi | ||
for dir in kafka schemaregistry ; do (cd $dir && go test -timeout 180s -v $GO_TAGS ./...) ; done | ||
go-kafkacat --help | ||
library-version | ||
(library-version | grep "$EXPECT_LINK_INFO") || (echo "Incorrect linkage, expected $EXPECT_LINK_INFO" ; false) |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
export msys2='cmd //C RefreshEnv.cmd ' | ||
export msys2+='& set MSYS=winsymlinks:nativestrict ' | ||
export msys2+='& C:\\msys64\\msys2_shell.cmd -defterm -no-start' | ||
export mingw64="$msys2 -mingw64 -full-path -here -c "\"\$@"\" --" | ||
export msys2+=" -msys2 -c "\"\$@"\" --" | ||
|
||
# Have to update pacman first or choco upgrade will failure due to migration | ||
# to zstd instead of xz compression | ||
$msys2 pacman -Sy --noconfirm pacman | ||
|
||
## Install more MSYS2 packages from https://packages.msys2.org/base here | ||
$msys2 pacman --sync --noconfirm --needed mingw-w64-x86_64-gcc |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
set -e | ||
export HOME=/c/Users/$USER | ||
export PATH=$HOME/go/bin:/C/msys64/mingw64/bin:$PATH | ||
export MAKE=mingw32-make # so that Autotools can find it | ||
source .semaphore/semaphore_commands.sh |
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Install (if necessary) and set up msys2. | ||
|
||
|
||
$url="https://github.com/msys2/msys2-installer/releases/download/2022-10-28/msys2-base-x86_64-20221028.sfx.exe" | ||
$sha256="e365b79b4b30b6f4baf34bd93f3d2a41c0a92801c7a96d79cddbfca1090a0554" | ||
|
||
|
||
if (!(Test-Path -Path "c:\msys64\usr\bin\bash.exe")) { | ||
echo "Downloading and installing msys2 to c:\msys64" | ||
|
||
(New-Object System.Net.WebClient).DownloadFile($url, './msys2-installer.exe') | ||
|
||
# Verify checksum | ||
(Get-FileHash -Algorithm "SHA256" .\msys2-installer.exe).hash -eq $sha256 | ||
|
||
# Install msys2 | ||
.\msys2-installer.exe -y -oc:\ | ||
|
||
Remove-Item msys2-installer.exe | ||
|
||
# Set up msys2 the first time | ||
echo "Setting up msys" | ||
c:\msys64\usr\bin\bash -lc ' ' | ||
|
||
} else { | ||
echo "Using previously installed msys2" | ||
} | ||
|
||
# Update packages | ||
echo "Updating msys2 packages" | ||
c:\msys64\usr\bin\bash -lc "pacman --noconfirm -Syuu --overwrite '*'" |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
if (!(Test-Path -Path ($env:USERPROFILE + "\go"))) { | ||
echo "Downloading and installing Go 1.17" | ||
curl https://go.dev/dl/go1.17.13.windows-amd64.zip -o ($env:USERPROFILE + '\go.zip') | ||
tar -xf ($env:USERPROFILE + '\go.zip') -C $env:USERPROFILE | ||
} else { | ||
echo "Using previously installed Go 1.17" | ||
} |
This file was deleted.
Oops, something went wrong.