mirror of
https://github.com/bluszcz/cutego.git
synced 2024-09-28 21:25:16 +03:00
trigger ci
This commit is contained in:
parent
475bc07013
commit
7feaca437e
6 changed files with 25 additions and 23 deletions
|
@ -28,9 +28,6 @@ install:
|
|||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then travis_wait 30 $GOPATH/src/github.com/therecipe/qt/internal/ci/linux.sh; fi
|
||||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then travis_wait 45 $GOPATH/src/github.com/therecipe/qt/internal/ci/darwin.sh; fi
|
||||
|
||||
before_script:
|
||||
- sudo chown $USER /usr/local/bin
|
||||
|
||||
script:
|
||||
- if [[ "$DESKTOP" == "true" ]]; then $GOPATH/src/github.com/therecipe/qt/setup.sh; else go run $GOPATH/src/github.com/therecipe/qt/internal/setup/generate.go; fi
|
||||
- if [[ "$ANDROID" == "true" ]]; then $GOPATH/src/github.com/therecipe/qt/setup.sh android; fi
|
||||
|
|
14
appveyor.yml
Normal file → Executable file
14
appveyor.yml
Normal file → Executable file
|
@ -1,16 +1,16 @@
|
|||
version: 1.0.{build}
|
||||
clone_depth: 1
|
||||
clone_folder: C:\work\src\github.com\therecipe\qt
|
||||
environment:
|
||||
GOPATH: C:\work
|
||||
install:
|
||||
- cmd: >-
|
||||
set PATH=%PATH%;C:\Qt\Qt5.7.0\Tools\mingw530_32\bin
|
||||
|
||||
set GOPATH=C:\work
|
||||
|
||||
|
||||
set QT=qt-opensource-windows-x86-android-5.7.0.exe
|
||||
|
||||
curl -sL --retry 6 --retry-delay 20 -o %TMP%\%QT% https://download.qt.io/official_releases/qt/5.7/5.7.0/%QT%
|
||||
curl -sL --retry 10 --retry-delay 10 -o %TMP%\%QT% https://download.qt.io/official_releases/qt/5.7/5.7.0/%QT%
|
||||
|
||||
%TMP%\%QT% --script %GOPATH%\src\github.com\therecipe\qt\internal\ci\iscript.qs
|
||||
|
||||
|
@ -19,19 +19,19 @@ install:
|
|||
|
||||
set SDK=android-sdk_r24.4.1-windows.zip
|
||||
|
||||
curl -sL --retry 6 --retry-delay 20 -o %TMP%\%SDK% https://dl.google.com/android/%SDK%
|
||||
curl -sL --retry 10 --retry-delay 10 -o %TMP%\%SDK% https://dl.google.com/android/%SDK%
|
||||
|
||||
7z x %TMP%\%SDK% -oC:\
|
||||
|
||||
DEL %TMP%\%SDK% /Q
|
||||
|
||||
|
||||
echo y | %ANDROID_SDK_DIR%\tools\android.bat -s update sdk -f -u -a -t 1,2,4,31
|
||||
echo y | C:\android-sdk-windows\tools\android.bat -s update sdk -f -u -a -t 1,2,4,31
|
||||
|
||||
|
||||
SET NDK=android-ndk-r12b-windows-x86_64.zip
|
||||
set NDK=android-ndk-r12b-windows-x86_64.zip
|
||||
|
||||
curl -sL --retry 6 --retry-delay 20 -o %TMP%\%NDK% https://dl.google.com/android/repository/%NDK%
|
||||
curl -sL --retry 10 --retry-delay 10 -o %TMP%\%NDK% https://dl.google.com/android/repository/%NDK%
|
||||
|
||||
7z x %TMP%\%NDK% -oC:\
|
||||
|
||||
|
|
12
circle.yml
12
circle.yml
|
@ -1,15 +1,13 @@
|
|||
machine:
|
||||
environment:
|
||||
OS: linux
|
||||
CI: true
|
||||
DESKTOP: true
|
||||
ANDROID: true
|
||||
|
||||
checkout:
|
||||
dependencies:
|
||||
- if [[ "$OS" == "linux" ]]; then $GOPATH/src/github.com/therecipe/qt/internal/ci/linux.sh; fi
|
||||
database:
|
||||
test:
|
||||
- export OS=linux
|
||||
- export CI=true
|
||||
- export DESKTOP=true
|
||||
- export ANDROID=true
|
||||
- if [[ "$OS" == "linux" ]]; then $GOPATH/src/github.com/therecipe/qt/internal/ci/linux.sh; fi
|
||||
- if [[ "$DESKTOP" == "true" ]]; then $GOPATH/src/github.com/therecipe/qt/setup.sh; else go run $GOPATH/src/github.com/therecipe/qt/internal/setup/generate.go; fi
|
||||
- if [[ "$ANDROID" == "true" ]]; then $GOPATH/src/github.com/therecipe/qt/setup.sh android; fi
|
||||
deployment:
|
||||
|
|
|
@ -15,7 +15,7 @@ QT=qt-opensource-mac-x64-android-ios-5.7.0
|
|||
else
|
||||
QT=qt-opensource-mac-x64-android-5.7.0
|
||||
fi
|
||||
curl -sL --retry 6 --retry-delay 20 -o /tmp/$QT.dmg https://download.qt.io/official_releases/qt/5.7/5.7.0/$QT.dmg
|
||||
curl -sL --retry 10 --retry-delay 10 -o /tmp/$QT.dmg https://download.qt.io/official_releases/qt/5.7/5.7.0/$QT.dmg
|
||||
hdiutil attach -noverify -noautofsck -quiet /tmp/$QT.dmg
|
||||
/Volumes/$QT/$QT.app/Contents/MacOS/$QT --script $GOPATH/src/github.com/therecipe/qt/internal/ci/iscript.qs
|
||||
diskutil unmountDisk disk1
|
||||
|
@ -25,7 +25,7 @@ if [ "$ANDROID" == "true" ]
|
|||
then
|
||||
#download and install android sdk
|
||||
SDK=android-sdk_r24.4.1-macosx.zip
|
||||
curl -sL --retry 6 --retry-delay 20 -o /tmp/$SDK https://dl.google.com/android/$SDK
|
||||
curl -sL --retry 10 --retry-delay 10 -o /tmp/$SDK https://dl.google.com/android/$SDK
|
||||
unzip -qq /tmp/$SDK -d $HOME
|
||||
rm -f /tmp/$SDK
|
||||
|
||||
|
@ -34,7 +34,7 @@ echo "y" | $HOME/android-sdk-macosx/tools/android -s update sdk -f -u -a -t 1,2,
|
|||
|
||||
#download and install android ndk
|
||||
NDK=android-ndk-r12b-darwin-x86_64.zip
|
||||
curl -sL --retry 6 --retry-delay 20 -o /tmp/$NDK https://dl.google.com/android/repository/$NDK
|
||||
curl -sL --retry 10 --retry-delay 10 -o /tmp/$NDK https://dl.google.com/android/repository/$NDK
|
||||
unzip -qq /tmp/$NDK -d $HOME
|
||||
rm -f /tmp/$NDK
|
||||
fi
|
||||
|
|
|
@ -19,14 +19,14 @@ sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-5 90
|
|||
|
||||
#download and install qt
|
||||
QT=qt-opensource-linux-x64-android-5.7.0.run
|
||||
curl -sL --retry 6 --retry-delay 20 -o /tmp/$QT https://download.qt.io/official_releases/qt/5.7/5.7.0/$QT
|
||||
curl -sL --retry 10 --retry-delay 10 -o /tmp/$QT https://download.qt.io/official_releases/qt/5.7/5.7.0/$QT
|
||||
chmod +x /tmp/$QT
|
||||
/tmp/$QT --script $GOPATH/src/github.com/therecipe/qt/internal/ci/iscript.qs
|
||||
rm -f /tmp/$QT
|
||||
|
||||
#download and install android sdk
|
||||
SDK=android-sdk_r24.4.1-linux.tgz
|
||||
curl -sL --retry 6 --retry-delay 20 -o /tmp/$SDK https://dl.google.com/android/$SDK
|
||||
curl -sL --retry 10 --retry-delay 10 -o /tmp/$SDK https://dl.google.com/android/$SDK
|
||||
tar -xzf /tmp/$SDK -C $HOME
|
||||
rm -f /tmp/$SDK
|
||||
|
||||
|
@ -35,10 +35,13 @@ echo "y" | $HOME/android-sdk-linux/tools/android -s update sdk -f -u -a -t 1,2,4
|
|||
|
||||
#download and install android ndk
|
||||
NDK=android-ndk-r12b-linux-x86_64.zip
|
||||
curl -sL --retry 6 --retry-delay 20 -o /tmp/$NDK https://dl.google.com/android/repository/$NDK
|
||||
curl -sL --retry 10 --retry-delay 10 -o /tmp/$NDK https://dl.google.com/android/repository/$NDK
|
||||
unzip -qq /tmp/$NDK -d $HOME
|
||||
rm -f /tmp/$NDK
|
||||
|
||||
#prepare env
|
||||
sudo chown $USER /usr/local/bin
|
||||
|
||||
#check env
|
||||
df -h
|
||||
|
||||
|
|
|
@ -96,6 +96,10 @@ func args() {
|
|||
}
|
||||
}
|
||||
|
||||
if strings.ToLower(os.Getenv("CI")) == "true" {
|
||||
buildMode = "build"
|
||||
}
|
||||
|
||||
buildMinimal = true
|
||||
|
||||
switch buildMode {
|
||||
|
|
Loading…
Reference in a new issue