Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI/CD? #19

Closed
ice1000 opened this issue Dec 12, 2019 · 13 comments
Closed

CI/CD? #19

ice1000 opened this issue Dec 12, 2019 · 13 comments
Assignees
Labels
N 优先级: 一般

Comments

@ice1000
Copy link
Contributor

ice1000 commented Dec 12, 2019

Setting up some CI integration will help, I think

@Him188
Copy link
Member

Him188 commented Dec 12, 2019

For artifacts downloading? I think JCenter is sufficient

@ice1000
Copy link
Contributor Author

ice1000 commented Dec 12, 2019

For testing

@Him188
Copy link
Member

Him188 commented Dec 12, 2019

OK

@Him188 Him188 added the N 优先级: 一般 label Dec 12, 2019
@ice1000
Copy link
Contributor Author

ice1000 commented Dec 12, 2019

Cool!

@Him188
Copy link
Member

Him188 commented Dec 12, 2019

😉

@ice1000
Copy link
Contributor Author

ice1000 commented Dec 12, 2019

😉😉😉😉😉😉😉

@niltok
Copy link
Contributor

niltok commented Dec 13, 2019

For testing

How to test a qq bot? @ice1000

@ice1000
Copy link
Contributor Author

ice1000 commented Dec 13, 2019

For testing

How to test a qq bot? @ice1000

At least we can test some http things

@Him188
Copy link
Member

Him188 commented Dec 14, 2019

For testing

How to test a qq bot? @ice1000

For unit tests.

  • TypeConvertions, e.g. int->bytearray
  • LockFreeLinkedList
  • GroupId <-> GroupInternalId

@ice1000
Copy link
Contributor Author

ice1000 commented Dec 14, 2019

I'd say, mostly, we're ensuring the project can be compiled.

@liujiahua123123
Copy link
Member

liujiahua123123 commented Dec 15, 2019

CI can not handle this project currently since certain parts(Android SDK staff) require jdk8 while some parts require jdk11.

.travis.yml was uploaded, pls help if you know how to resolve.

language: android

jdk: oraclejdk8
### need JDK11

env:
  global:
    - ANDROID_API_LEVEL=28
    - ANDROID_BUILD_TOOLS_VERSION=28.0.3
    - ANDROID_ABI=armeabi-v7a

android:
  components:
    - tools
    - platform-tools
    - tools
    - extra-android-m2repository
  licenses:
    - 'android-sdk-preview-license-52d11cd2'
    - 'android-sdk-license-.+'
    - 'google-gdk-license-.+'

before_install:
  - touch $HOME/.android/repositories.cfg
  - yes | sdkmanager "platforms;android-28"
  - yes | sdkmanager "build-tools;28.0.3"

### need JDK8( SDK manager thing)

before_cache:
  - rm -f  $HOME/.gradle/caches/modules-2/modules-2.lock
  - rm -fr $HOME/.gradle/caches/*/plugin-resolution/

cache:
  directories:
    - $HOME/.gradle/caches/
    - $HOME/.gradle/wrapper/
    - $HOME/.android/build-cache

before_script:
  - chmod +x gradlew

script:
  - ./gradlew clean build
  - ./gradlew test

@Him188
Copy link
Member

Him188 commented Dec 15, 2019

CI is now working

@Him188 Him188 closed this as completed Dec 15, 2019
@ice1000
Copy link
Contributor Author

ice1000 commented Dec 15, 2019

dl, sdl, awsl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
N 优先级: 一般
Projects
None yet
Development

No branches or pull requests

4 participants