Commit ea011027 authored by Daniel Wolf's avatar Daniel Wolf
Browse files

Merge CI steps

parent 0689de8f
...@@ -3,23 +3,11 @@ image: thyrlian/android-sdk ...@@ -3,23 +3,11 @@ image: thyrlian/android-sdk
before_script: before_script:
- chmod +x gradlew - chmod +x gradlew
test: test-build-deploy:
stage: test stage: test
script: script:
- ./gradlew clean assembleRelease test --stacktrace || (find . -type d -wholename "**reports/tests" -exec zip -ru tests.zip {} \; && exit 1) - ./gradlew clean assembleRelease sourcesJar javadocJar test --stacktrace
- find . -type d -wholename "**reports/tests" -exec zip -ru tests.zip {} \; - ./gradlew publish --stacktrace
except: except:
- /^no_ci.*$/ - /^no_ci.*$/
- /^no_tests.*$/ - /^no_tests.*$/
artifacts: \ No newline at end of file
when: always
paths:
- tests.zip
deploy:
stage: deploy
script:
- ./gradlew clean assembleRelease sourcesJar javadocJar
- ./gradlew publish --stacktrace
only:
- /^deploy.*$/
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment