Commit ea011027 authored by Daniel Wolf's avatar Daniel Wolf

Merge CI steps

parent 0689de8f
......@@ -3,23 +3,11 @@ image: thyrlian/android-sdk
before_script:
- chmod +x gradlew
test:
test-build-deploy:
stage: test
script:
- ./gradlew clean assembleRelease test --stacktrace || (find . -type d -wholename "**reports/tests" -exec zip -ru tests.zip {} \; && exit 1)
- find . -type d -wholename "**reports/tests" -exec zip -ru tests.zip {} \;
- ./gradlew clean assembleRelease sourcesJar javadocJar test --stacktrace
- ./gradlew publish --stacktrace
except:
- /^no_ci.*$/
- /^no_tests.*$/
artifacts:
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
- /^no_tests.*$/
\ No newline at end of file
Markdown is supported
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