Skip to content

Commit

Permalink
Moving back coverageReport and deployment to travis (#1205)
Browse files Browse the repository at this point in the history
  • Loading branch information
dominv authored and raulraja committed Dec 18, 2018
1 parent 7bb63cc commit 3ed9684
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 34 deletions.
31 changes: 0 additions & 31 deletions .travis.yml
Expand Up @@ -6,52 +6,21 @@ jdk:
- oraclejdk8

stages:
- name: build-and-dokka
if: branch != master OR type = pull_request
- name: build-and-dokka-transfer
if: branch = master AND type != pull_request
- name: coverage-report
if: branch = master
- name: deploy
if: branch = master AND type != pull_request
- name: deploy-docs
if: branch = master AND type != pull_request

env:
global:
# include $HOME/.local/bin for `aws`
- PATH=$HOME/.local/bin:$PATH
- JAVA_OPTS="-Xms512m -Xmx1024m"

before_install:
- pip install --user awscli
- mkdir -p ~/site

jobs:
include:
- stage: build-and-dokka
script:
# redirecting outputs to files to avoid exceeding travis' logs limit
- ./gradlew clean build
- ./gradlew dokka :arrow-docs:runAnk
- stage: build-and-dokka-transfer
script:
- ./gradlew checkDependenciesVersion
- ./gradlew clean build
- ./gradlew dokka :arrow-docs:runAnk
- aws s3 sync modules/docs/arrow-docs/build/site s3://$S3_BUCKET/site > aws_sync_dokka.log
- stage: coverage-report
script:
- ./gradlew codeCoverageReport
- bash <(curl -s https://codecov.io/bash)
- stage: deploy
script:
- ./deploy-scripts/deploy.sh
- stage: deploy-docs
script:
- aws s3 sync s3://$S3_BUCKET/site ~/site > aws_sync_jekyll.log
- rvm use 2.5.3 --install --fuzzy
- bundle install --gemfile modules/docs/arrow-docs/Gemfile --path vendor/bundle
- export BUNDLE_GEMFILE=modules/docs/arrow-docs/Gemfile
- travis_wait 10 bundle exec jekyll build -s ~/site -d ~/_site
- aws s3 sync ~/_site s3://$S3_BUCKET > aws_sync_site.log
3 changes: 0 additions & 3 deletions bitrise.yml
Expand Up @@ -36,9 +36,6 @@ workflows:
#!/usr/bin/env bash
set -ex
./gradlew build dokka :arrow-docs:runAnk
./gradlew codeCoverageReport
bash <(curl -s https://codecov.io/bash)
./deploy-scripts/deploy.sh
bundle install --gemfile modules/docs/arrow-docs/Gemfile --path vendor/bundle
export BUNDLE_GEMFILE=modules/docs/arrow-docs/Gemfile
bundle exec jekyll build -s modules/docs/arrow-docs/build/site -d modules/docs/arrow-docs/build/_site
Expand Down

0 comments on commit 3ed9684

Please sign in to comment.