this is the main cwtch gui with the pretty interface https://cwtch.im
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

154 lines
4.9 KiB

  1. workspace:
  2. base: /media/sf_GOPATH1/src/cwtch.im
  3. path: ui
  4. pipeline:
  5. build-linux:
  6. mem_limit: 3G
  7. image: therecipe/qt:linux_static
  8. when:
  9. repo: cwtch.im/ui
  10. branch: master
  11. event: [ push, pull_request ]
  12. environment:
  13. - QT_DIR=/opt/Qt
  14. - QT_DOCKER='true'
  15. - QT_API=5.13.0
  16. - GO111MODULE=on
  17. commands:
  18. - export PATH=$PATH:/home/user/work/bin:/media/sf_GOPATH1/bin
  19. - apt-get -qq update && apt-get --no-install-recommends -qq -y install ca-certificates curl git openssh-client
  20. - go mod download
  21. - $QT_DIR/$QT_API/gcc_64/bin/lrelease ui.pro
  22. - git fetch --tags
  23. - export VERSION=`git describe --tags`
  24. - export BUILDDATE=`date +%G-%m-%d-%H-%M`
  25. - go mod vendor
  26. - qtdeploy -ldflags "-X main.buildVer=$VERSION -X main.buildDate=$BUILDDATE" build linux
  27. - cp README.md deploy/linux
  28. - cp -R assets deploy/linux/
  29. - export FILENAME=cwtch-linux-$BUILDDATE.tar.gz
  30. - cd deploy
  31. - mv linux cwtch
  32. - tar -czf $FILENAME cwtch
  33. - sha256sum $FILENAME > $FILENAME.sha256
  34. - rm -r cwtch
  35. build-android:
  36. mem_limit: 3G
  37. image: therecipe/qt:android
  38. when:
  39. repo: cwtch.im/ui
  40. branch: master
  41. event: push
  42. environment:
  43. - QT_DIR=/opt/Qt
  44. - QT_DOCKER='true'
  45. - QT_API=5.13.0
  46. - ANDROID_NDK_DIR=/home/user/android-ndk-r18b
  47. - ANDROID_SDK_DIR=/home/user/android-sdk-linux
  48. - GO111MODULE=on
  49. commands:
  50. - export PATH=$PATH:/home/user/work/bin:/media/sf_GOPATH1/bin
  51. - apt-get -qq update && apt-get --no-install-recommends -qq -y install ca-certificates curl git
  52. - rm -r vendor/
  53. - make clean
  54. - go mod download
  55. - export VERSION=`git describe --tags`
  56. - export BUILDDATE=`date +%G-%m-%d-%H-%M`
  57. - go mod vendor
  58. - qtsetup generate android
  59. - mv assets android/
  60. - qtdeploy -ldflags "-X main.buildVer=$VERSION -X main.buildDate=$BUILDDATE" build android
  61. - mv android/assets assets
  62. - cd deploy
  63. - export FILENAME=cwtch-android-$BUILDDATE.apk
  64. - cp android/build-debug.apk $FILENAME
  65. - sha256sum $FILENAME > $FILENAME.sha256
  66. build-windows:
  67. mem_limit: 3G
  68. image: therecipe/qt:windows_64_static
  69. when:
  70. repo: cwtch.im/ui
  71. branch: [ master, windows_build ]
  72. event: push
  73. environment:
  74. - QT_DIR=/opt/Qt
  75. - QT_DOCKER='true'
  76. - QT_API=5.13.0
  77. - GO111MODULE=on
  78. commands:
  79. - export PATH=$PATH:/home/user/work/bin:/media/sf_GOPATH1/bin
  80. - apt-get -qq update && apt-get --no-install-recommends -qq -y install ca-certificates curl git zip
  81. - rm -r vendor || true
  82. - make clean || true
  83. - go mod download
  84. - export VERSION=`git describe --tags`
  85. - export BUILDDATE=`date +%G-%m-%d-%H-%M`
  86. - go mod vendor
  87. - qtdeploy -ldflags "-X main.buildVer=$VERSION -X main.buildDate=$BUILDDATE" build windows
  88. - cp README.md deploy/windows
  89. - cp -R assets deploy/windows/
  90. - cp -r windows/* deploy/windows
  91. - cd deploy
  92. - mv windows cwtch
  93. - export FILENAME=cwtch-windows-$BUILDDATE.zip
  94. - zip -r $FILENAME cwtch
  95. - sha256sum $FILENAME > $FILENAME.sha256
  96. - rm -r cwtch
  97. deploy-buildfiles:
  98. image: pivotaldata/concourse-ssh
  99. secrets: [buildfiles_key]
  100. when:
  101. repo: cwtch.im/ui
  102. branch: master
  103. event: push
  104. status: [ success ]
  105. commands:
  106. - apk add --no-cache git
  107. - echo $BUILDFILES_KEY > ~/id_rsab64
  108. - base64 -d ~/id_rsab64 > ~/id_rsa
  109. - chmod 400 ~/id_rsa
  110. - export DIR=`date +%G.%m.%d-%H.%M`-`git describe --tags`
  111. - cd deploy
  112. - mkdir $DIR
  113. - mv cwtch* $DIR/
  114. - scp -r -o StrictHostKeyChecking=no -i ~/id_rsa $DIR buildfiles@openprivacy.ca:/home/buildfiles/buildfiles/
  115. deploy-windows-build:
  116. image: pivotaldata/concourse-ssh
  117. secrets: [buildfiles_key]
  118. when:
  119. repo: cwtch.im/ui
  120. branch: windows_build
  121. event: push
  122. status: [ success ]
  123. commands:
  124. - apk add --no-cache git
  125. - echo $BUILDFILES_KEY > ~/id_rsab64
  126. - base64 -d ~/id_rsab64 > ~/id_rsa
  127. - chmod 400 ~/id_rsa
  128. - git fetch --tags
  129. - export DIR=`date +%G.%m.%d-%H.%M`-`git describe --tags`
  130. - cd deploy
  131. - mkdir -p windows_build/$DIR
  132. - mv cwtch* windows_build/$DIR/
  133. - scp -r -o StrictHostKeyChecking=no -i ~/id_rsa windows_build buildfiles@openprivacy.ca:/home/buildfiles/buildfiles/
  134. notify-email:
  135. image: drillster/drone-email
  136. host: build.openprivacy.ca
  137. port: 25
  138. skip_verify: true
  139. from: drone@openprivacy.ca
  140. when:
  141. repo: cwtch.im/ui
  142. branch: master
  143. status: [ failure ]
  144. notify-gogs:
  145. image: openpriv/drone-gogs
  146. when:
  147. repo: cwtch.im/ui
  148. branch: master
  149. event: pull_request
  150. status: [ success, changed, failure ]
  151. secrets: [gogs_account_token]
  152. gogs_url: https://git.openprivacy.ca