diff --git a/.gitlab-ci-android.yml b/.gitlab-ci-android.yml deleted file mode 100644 index 807b863..0000000 --- a/.gitlab-ci-android.yml +++ /dev/null @@ -1,67 +0,0 @@ -# CLEAN -clean: - tags: [android] - stage: clean - only: - - tags - script: - - ./gradlew clean - -# TESTS -sdk:test:release: - tags: [android] - stage: test - only: - - /^\d+\.\d+\.\d+/ - script: - - ./gradlew sdk:testReleaseUnitTest - artifacts: - reports: - junit: sdk/build/test-results/testReleaseUnitTest/TEST-*.xml - -# DOCUMENTATION -sdk:documentation:release: - tags: [android] - stage: documentation - only: - - /^\d+\.\d+\.\d+/ - script: - - ./gradlew sdk:generateDocumentation - artifacts: - paths: - - sdk/build/libs/ - -# SOURCES -sdk:sources:release: - tags: [android] - stage: sources - only: - - /^\d+\.\d+\.\d+/ - script: - - ./gradlew sdk:sourcesJar - artifacts: - paths: - - sdk/build/libs/ - - -# BUILD -sdk:build:release: - tags: [android] - stage: build - only: - - /^\d+\.\d+\.\d+$/ - script: - - ./gradlew sdk:assembleRelease - artifacts: - paths: - - sdk/build/outputs/aar/ - expire_in: 1 day - -# DEPLOY -sdk:deploy:release: - tags: [android] - stage: deploy - only: - - /^\d+\.\d+\.\d+/ - script: - - ./gradlew sdk:publishReleasePublicationToStagingRepository diff --git a/.gitlab-ci-release.yml b/.gitlab-ci-release.yml deleted file mode 100644 index 9768e8d..0000000 --- a/.gitlab-ci-release.yml +++ /dev/null @@ -1,26 +0,0 @@ -Sync to GitHub: - stage: release - image: docker:stable - only: - - tags - except: - - branches - when: manual - script: - - TMP_DIR="/tmp/${CI_COMMIT_SHA}" - - WORKDIR=$(pwd) - - rm -Rf .git/ - - mkdir ${TMP_DIR} - - cd ${TMP_DIR} - - git clone git@github.com:tpay-com/tpay-android.git . - - git config user.name "Tpay Auto Commit" - - git config user.email "devs@tpay.com" - - cp -rT ${WORKDIR} . - - rm .gitlab-ci.yml - - git add ./ - - git commit -m "${CI_COMMIT_MESSAGE}" - - git push - - git tag ${CI_COMMIT_TAG} - - git push --tags - - cd ${WORKDIR} - - rm ${TMP_DIR} -Rf