Skip to content

Commit

Permalink
update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
artyomnikolaev committed Nov 3, 2020
1 parent 48ca51a commit 830c881
Show file tree
Hide file tree
Showing 12 changed files with 74 additions and 30 deletions.
51 changes: 43 additions & 8 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ before_script:

build:
tags:
- devops
- sdk
stage: build
except:
- branches
script:
- ./gradlew assembleDebug
artifacts:
expire_in: 4 hours
expire_in: 2 hours
paths:
- app/build/outputs/
- app-playfab/build/outputs/
Expand All @@ -35,7 +35,7 @@ build:

test:
tags:
- devops
- sdk
stage: test
except:
- branches
Expand All @@ -48,7 +48,7 @@ test:

generateDebugApp:
tags:
- devops
- sdk
stage: publish
except:
- branches
Expand All @@ -64,21 +64,56 @@ generateDebugApp:
- mv app-playfab/build/outputs/apk/debug/app-playfab-debug.apk ./artifacts/SampleApp-Playfab.apk
- mv app-simplified/build/outputs/apk/debug/app-simplified-debug.apk ./artifacts/SampleApp-Simplified.apk
artifacts:
expire_in: 3 days
expire_in: 2 hours
paths:
- artifacts

bintrayUpload:
publishLogin:
tags:
- devops
- sdk
stage: publish
when: manual
only:
- /^v.*/
except:
- branches
script:
- ./gradlew bintrayUpload
- ./gradlew :xsolla-login-sdk:bintrayUpload
- ./gradlew :xsolla-login-sdk-facebook:bintrayUpload
- ./gradlew :xsolla-login-sdk-google:bintrayUpload
cache:
key: ${CI_PROJECT_ID}
paths:
- .gradle/*

publishStore:
tags:
- sdk
stage: publish
when: manual
only:
- /^v.*/
except:
- branches
script:
- ./gradlew :xsolla-store-sdk:bintrayUpload
cache:
key: ${CI_PROJECT_ID}
paths:
- .gradle/*

publishPayments:
tags:
- sdk
stage: publish
when: manual
only:
- /^v.*/
except:
- branches
script:
- ./gradlew :xsolla-payments-sdk:bintrayUpload
- ./gradlew :xsolla-payments-sdk-playfab:bintrayUpload
cache:
key: ${CI_PROJECT_ID}
paths:
Expand Down
4 changes: 2 additions & 2 deletions app-core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ android {
defaultConfig {
minSdkVersion sdk_min
targetSdkVersion sdk_target
versionCode sdk_version_code
versionName sdk_version_name
versionCode sample_app_version_code
versionName sample_app_version_name

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"

Expand Down
4 changes: 2 additions & 2 deletions app-playfab/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ android {
applicationId "com.xsolla.android.playfabexample"
minSdkVersion sdk_min
targetSdkVersion sdk_target
versionCode sdk_version_code
versionName sdk_version_name
versionCode sample_app_version_code
versionName sample_app_version_name
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary true

Expand Down
4 changes: 2 additions & 2 deletions app-simplified/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ android {
applicationId "com.xsolla.android.simplifiedexample"
minSdkVersion sdk_min
targetSdkVersion sdk_target
versionCode sdk_version_code
versionName sdk_version_name
versionCode sample_app_version_code
versionName sample_app_version_name
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary true

Expand Down
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ android {
applicationId "com.xsolla.android.storesdkexample"
minSdkVersion sdk_min
targetSdkVersion sdk_target
versionCode sdk_version_code
versionName sdk_version_name
versionCode sample_app_version_code
versionName sample_app_version_name
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary true

Expand Down
13 changes: 11 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,17 @@

buildscript {

ext.sdk_version_name = '0.14.0'
ext.sdk_version_code = 8
ext.payments_sdk_version_name = '0.14.0'
ext.payments_sdk_version_code = 8

ext.store_sdk_version_name = '0.15.0'
ext.store_sdk_version_code = 9

ext.login_sdk_version_name = '1.0.0'
ext.login_sdk_version_code = 9

ext.sample_app_version_name = '1.0.0'
ext.sample_app_version_code = 9

ext.sdk_min = 21
ext.sdk_target = 29
Expand Down
4 changes: 2 additions & 2 deletions xsolla-login-sdk-facebook/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ android {
defaultConfig {
minSdkVersion sdk_min
targetSdkVersion sdk_target
versionCode sdk_version_code
versionName sdk_version_name
versionCode login_sdk_version_code
versionName login_sdk_version_name

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles 'consumer-rules.pro'
Expand Down
4 changes: 2 additions & 2 deletions xsolla-login-sdk-google/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ android {
defaultConfig {
minSdkVersion sdk_min
targetSdkVersion sdk_target
versionCode sdk_version_code
versionName sdk_version_name
versionCode login_sdk_version_code
versionName login_sdk_version_name

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles 'consumer-rules.pro'
Expand Down
4 changes: 2 additions & 2 deletions xsolla-login-sdk/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ android {
defaultConfig {
minSdkVersion sdk_min
targetSdkVersion sdk_target
versionCode sdk_version_code
versionName sdk_version_name
versionCode login_sdk_version_code
versionName login_sdk_version_name

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles 'consumer-rules.pro'
Expand Down
4 changes: 2 additions & 2 deletions xsolla-payments-sdk-playfab/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ android {
defaultConfig {
minSdkVersion sdk_min
targetSdkVersion sdk_target
versionCode sdk_version_code
versionName sdk_version_name
versionCode payments_sdk_version_code
versionName payments_sdk_version_name

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles 'consumer-rules.pro'
Expand Down
4 changes: 2 additions & 2 deletions xsolla-payments-sdk/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ android {
defaultConfig {
minSdkVersion sdk_min
targetSdkVersion sdk_target
versionCode sdk_version_code
versionName sdk_version_name
versionCode payments_sdk_version_code
versionName payments_sdk_version_name

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles 'consumer-rules.pro'
Expand Down
4 changes: 2 additions & 2 deletions xsolla-store-sdk/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ android {
defaultConfig {
minSdkVersion sdk_min
targetSdkVersion sdk_target
versionCode sdk_version_code
versionName sdk_version_name
versionCode store_sdk_version_code
versionName store_sdk_version_name

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles 'consumer-rules.pro'
Expand Down

0 comments on commit 830c881

Please sign in to comment.