Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
32 lines (31 sloc) 1.28 KB
build:
box:
id: gcr.io/android-container-build/github-kazy1991-wercker-container-android
username: _json_key
password: $GCR_JSON_KEY_FILE
registry: gcr.io
tag: 80419ac44ac6f4598546b0cffd77a643cbe72d96
steps:
- script:
name: run prefkit:test
code: |
./gradlew --project-cache-dir=$WERCKER_CACHE_DIR prefkit:jacoco prefkit:coveralls -PdisablePreDex
- script:
name: run codecov
code: |
bash <(curl -s https://codecov.io/bash)
- script:
name: run danger
code: |
gem install --no-ri bundler && bundle install
REPO_URL=https://$WERCKER_GIT_DOMAIN/$WERCKER_GIT_OWNER/$WERCKER_GIT_REPOSITORY
PR_BASE_URL=$REPO_URL/pull/$WERCKER_GIT_BRANCH \
PR_URL=`curl -Ls -o /dev/null -w %{url_effective} $PR_BASE_URL` \
BUILDKITE_PULL_REQUEST_REPO=https://$WERCKER_GIT_DOMAIN/$WERCKER_GIT_OWNER \
BUILDKITE_PULL_REQUEST=`echo $PR_URL | ruby -e "print STDIN.first.match(/\/(\d+)$/).to_a.at(1)"` \
BUILDKITE=true BUILDKITE_PULL_REQUEST_REPO=$PR_URL BUILDKITE_REPO=$REPO_URL \
bundle exec danger
- script:
name: run sample:build
code: |
./gradlew --project-cache-dir=$WERCKER_CACHE_DIR sample:assembleDebug -PdisablePreDex