mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
Add GCversionXXX.txt to CI builds results
Where XXX identify the OS, to give build context. GoldenCheetah --version output plus the last commit. [publish binaries]
This commit is contained in:
10
appveyor.yml
10
appveyor.yml
@@ -167,17 +167,21 @@ after_build:
|
||||
# Build the installer
|
||||
- makensis GC3.6-Dev-Master-W64-QT5.14.2.nsi
|
||||
- move GoldenCheetah_v3.6-DEV_64bit_Windows.exe ..\..\GoldenCheetah_v3.6-DEV_x64.exe
|
||||
- cd ..\..
|
||||
- ps: Set-AppveyorBuildVariable -Name 'PUBLISH_BINARIES' -Value false
|
||||
- ps: if ($env:APPVEYOR_REPO_COMMIT_MESSAGE_EXTENDED -Like "*[publish binaries]*") { Set-AppveyorBuildVariable -Name 'PUBLISH_BINARIES' -Value true }
|
||||
|
||||
test_script:
|
||||
# minimum test
|
||||
- GoldenCheetah --version
|
||||
- cd ..\..
|
||||
- src\release\GoldenCheetah --version 2>GCversionWindows.txt
|
||||
- git log -1 >> GCversionWindows.txt
|
||||
- type GCversionWindows.txt
|
||||
|
||||
artifacts:
|
||||
- path: GoldenCheetah_v3.6-DEV_x64.exe
|
||||
name: GCinstaller
|
||||
- path: GCversionWindows.txt
|
||||
name: GCversionWindows
|
||||
|
||||
deploy:
|
||||
# deploy continuous builds to s3
|
||||
@@ -191,7 +195,7 @@ deploy:
|
||||
remove_files: true
|
||||
set_public: true
|
||||
folder: Windows
|
||||
artifact: GCinstaller
|
||||
artifact: GCinstaller, GCversionWindows
|
||||
on:
|
||||
PUBLISH_BINARIES: true
|
||||
APPVEYOR_REPO_NAME: "GoldenCheetah/GoldenCheetah"
|
||||
|
||||
@@ -62,12 +62,15 @@ mv GoldenCheetah*.AppImage $FINAL_NAME
|
||||
ls -l $FINAL_NAME
|
||||
|
||||
### Minimum Test
|
||||
./$FINAL_NAME --version
|
||||
./$FINAL_NAME --version 2>GCversionLinux.txt
|
||||
git log -1 >> GCversionLinux.txt
|
||||
cat GCversionLinux.txt
|
||||
|
||||
### upload for testing
|
||||
if [[ $TRAVIS_PULL_REQUEST == "false" && $TRAVIS_COMMIT_MESSAGE == *"[publish binaries]"* ]]; then
|
||||
aws s3 rm s3://goldencheetah-binaries/Linux --recursive # keep only the last one
|
||||
aws s3 cp --acl public-read $FINAL_NAME s3://goldencheetah-binaries/Linux/$FINAL_NAME
|
||||
aws s3 cp --acl public-read GCversionLinux.txt s3://goldencheetah-binaries/Linux/GCversionLinux.txt
|
||||
else
|
||||
curl --max-time 300 --upload-file $FINAL_NAME https://transfer.sh/$FINAL_NAME
|
||||
fi
|
||||
|
||||
@@ -51,15 +51,16 @@ ls -l $FINAL_NAME
|
||||
|
||||
echo "Mounting dmg file and testing it can execute"
|
||||
hdiutil mount $FINAL_NAME
|
||||
cd /Volumes/GoldenCheetah
|
||||
GoldenCheetah.app/Contents/MacOS/GoldenCheetah --version
|
||||
/Volumes/GoldenCheetah/GoldenCheetah.app/Contents/MacOS/GoldenCheetah --version 2>GCversionMacOS.txt
|
||||
git log -1 >> GCversionMacOS.txt
|
||||
cat GCversionMacOS.txt
|
||||
|
||||
echo "Uploading for user tests"
|
||||
### upload for testing
|
||||
cd $TRAVIS_BUILD_DIR/src
|
||||
if [[ $TRAVIS_PULL_REQUEST == "false" && $TRAVIS_COMMIT_MESSAGE == *"[publish binaries]"* ]]; then
|
||||
aws s3 rm s3://goldencheetah-binaries/MacOS --recursive # keep only the last one
|
||||
aws s3 cp --acl public-read $FINAL_NAME s3://goldencheetah-binaries/MacOS/$FINAL_NAME
|
||||
aws s3 cp --acl public-read GCversionMacOS.txt s3://goldencheetah-binaries/MacOS/GCversionMacOS.txt
|
||||
else
|
||||
curl --max-time 300 --upload-file $FINAL_NAME https://transfer.sh/$FINAL_NAME
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user