this is the main cwtch gui with the pretty interface
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 
 

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