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.

.drone.yml 4.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  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. commands:
  17. - export GOPATH=$GOPATH:/media/sf_GOPATH1/
  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 get -d
  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. - qtdeploy -ldflags "-X main.buildVer=$VERSION -X main.buildDate=$BUILDDATE" build linux
  26. - cp README.md deploy/linux
  27. - export FILENAME=cwtch-linux-$BUILDDATE.tar.gz
  28. - cd deploy
  29. - mv linux cwtch
  30. - tar -czf $FILENAME cwtch
  31. - sha256sum $FILENAME > $FILENAME.sha256
  32. - rm -r cwtch
  33. build-android:
  34. mem_limit: 3G
  35. image: therecipe/qt:android
  36. when:
  37. repo: cwtch.im/ui
  38. branch: master
  39. event: push
  40. environment:
  41. - QT_DIR=/opt/Qt
  42. - QT_DOCKER='true'
  43. - QT_API=5.13.0
  44. - ANDROID_NDK_DIR=/home/user/android-ndk-r18b
  45. - ANDROID_SDK_DIR=/home/user/android-sdk-linux
  46. commands:
  47. - export GOPATH=$GOPATH:/media/sf_GOPATH1/
  48. - export PATH=$PATH:/home/user/work/bin:/media/sf_GOPATH1/bin
  49. - apt-get -qq update && apt-get --no-install-recommends -qq -y install ca-certificates curl git
  50. - find -iname 'moc*' | xargs rm
  51. - find -iname 'rcc*' | xargs rm
  52. - go get -d
  53. - export VERSION=`git describe --tags`
  54. - export BUILDDATE=`date +%G-%m-%d-%H-%M`
  55. - qtdeploy -ldflags "-X main.buildVer=$VERSION -X main.buildDate=$BUILDDATE" build android
  56. - cd deploy
  57. - export FILENAME=cwtch-android-$BUILDDATE.apk
  58. - cp android/build-debug.apk $FILENAME
  59. - sha256sum $FILENAME > $FILENAME.sha256
  60. build-windows:
  61. mem_limit: 3G
  62. image: therecipe/qt:windows_64_static
  63. when:
  64. repo: cwtch.im/ui
  65. branch: master
  66. event: push
  67. environment:
  68. - QT_DIR=/opt/Qt
  69. - QT_DOCKER='true'
  70. - QT_API=5.13.0
  71. commands:
  72. - export GOPATH=$GOPATH:/media/sf_GOPATH1/
  73. - export PATH=$PATH:/home/user/work/bin:/media/sf_GOPATH1/bin
  74. - apt-get -qq update && apt-get --no-install-recommends -qq -y install ca-certificates curl git zip
  75. - find -iname 'moc*' | xargs rm
  76. - find -iname 'rcc*' | xargs rm
  77. - go get -d
  78. - export VERSION=`git describe --tags`
  79. - export BUILDDATE=`date +%G-%m-%d-%H-%M`
  80. - qtdeploy -ldflags "-X main.buildVer=$VERSION -X main.buildDate=$BUILDDATE" build windows
  81. - cp README.md deploy/windows
  82. - cp -r windows/* deploy/windows
  83. - cd deploy
  84. - mv windows cwtch
  85. - export FILENAME=cwtch-windows-$BUILDDATE.zip
  86. - zip -r $FILENAME cwtch
  87. - sha256sum $FILENAME > $FILENAME.sha256
  88. - rm -r cwtch
  89. deploy-buildfiles:
  90. image: pivotaldata/concourse-ssh
  91. secrets: [buildfiles_key]
  92. when:
  93. repo: cwtch.im/ui
  94. branch: master
  95. event: push
  96. status: [ success ]
  97. commands:
  98. - apk add --no-cache git
  99. - echo $BUILDFILES_KEY > ~/id_rsab64
  100. - base64 -d ~/id_rsab64 > ~/id_rsa
  101. - chmod 400 ~/id_rsa
  102. - export DIR=`date +%G.%m.%d-%H.%M`-`git describe --tags`
  103. - cd deploy
  104. - mkdir $DIR
  105. - mv cwtch* $DIR/
  106. - scp -r -o StrictHostKeyChecking=no -i ~/id_rsa $DIR buildfiles@openprivacy.ca:/home/buildfiles/buildfiles/
  107. notify-email:
  108. image: drillster/drone-email
  109. host: build.openprivacy.ca
  110. port: 25
  111. skip_verify: true
  112. from: drone@openprivacy.ca
  113. when:
  114. repo: cwtch.im/ui
  115. branch: master
  116. status: [ failure ]
  117. notify-gogs:
  118. image: openpriv/drone-gogs
  119. when:
  120. repo: cwtch.im/ui
  121. branch: master
  122. event: pull_request
  123. status: [ success, changed, failure ]
  124. secrets: [gogs_account_token]
  125. gogs_url: https://git.openprivacy.ca