forked from opensrp/opensrp-client-chw-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
55 lines (48 loc) · 2.23 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
language: android
# sudo set to required because of an issue with how TravisCI handles builds in Docker containers https://github.com/travis-ci/travis-ci/issues/3695.
# Setting sudo to required prevents Travis from testing the project in a Docker container.
sudo: required
jdk: oraclejdk8
dist: precise
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/
android:
components:
# tools required
- tools
# The BuildTools version used by your project
- build-tools-28.0.3
# The SDK version used to compile your projects
- android-22
- android-28
# Additional components
- extra-google-m2repository
- extra-android-m2repository
script:
- echo "Travis branch is $TRAVIS_BRANCH"
- echo "Travis branch is in pull request $TRAVIS_PULL+REQUEST"
- chmod 755 gradlew
- ls -la
#Run jacocoTestReport -> Runs all unit tests & instrumentation tests
- travis_wait ./gradlew :opensrp-chw-core:clean :opensrp-chw-core:jacocoTestReport coveralls --stacktrace
# Generate javadoc
- ./gradlew javadoc
notifications:
slack:
secure: fAiZ4yA7DM6nUKh7nqsCTqZBb03VEAvi5NcRu5mNh5coNn/50XNeZl+qpv7Dw70Ef85Y/k68uc6KwTGVqPXEmVq9Hk3e7lqpBNN8rufvgCYDDGPmywBmU5BhSeykKo0Ee7llM3mRR/EipjIWw1+YvMcS3hCoygf/UlMDDhG0Jo0=
deploy:
provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
local_dir: opensrp-chw-core/build/docs/javadoc/
on:
branch: master
env:
global:
# git hub token
secure: y513xIibYyuV9/jKX1Hzj6saz2k6eoEcEoGJ0IApfGKTI9kIURUa1HnEux/nqh9BM4P60bODqw+ndH1SvGCuU0grAqxzpLnJ1O5Vcra2daVcWobfBEFrG+tliPrRWNaHRbtn6e6j+lXYsOeaTxY9RW4/mis1PlAR+bGJS4E8bprMQyavF81UtWqIQuGq+Z8vBT1hI7ONcRhlCWOvTkswNXxp1QfTYigZklp7uEc0zo/YP4Iu1FdlqXiM0pAkZSdlgqPUiIa9Coq7+hKAToBUyRYfE0YVGQjGtNpNaCMq7IIFvBCcUlvG7KhFFPRWIJwZS/kuzFqB80Zbiu0jp1V8XTRoAqYhvoCsFn2p3RcjtUMswbmm8gwx814dfa0MWWd4rbd1X+vdJSyPp8qzguMvygWb0yBDkCVrVtNqWWe5j3+ASsNHDQWoBwKLDmituQNi1ninSKZBe3277kHQaB4sQtdre0SK+SLL4jvHwkRF2UTjFXTrjobLvAwRbWSZz9OGmcLTlL7DuS1X4N4k0JPknmsoUFVw64kbt7IxXZc2ZR/2avNiXCZfJCKsZ7AmkKdtGwdTkw0zPAsIrZLTm8nG+5zwCiLoWoQt3zH51LqYfVvc178To+VkKREiGl4tUCKyrR2jcRi12PL1ub/Ufa7CA/oViNb7H2/bOOh0/uyMMjg=