forked from arrow-kt/arrow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bitrise.yml
73 lines (73 loc) · 2.07 KB
/
bitrise.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
---
format_version: '6'
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
project_type: other
trigger_map:
- push_branch: master
workflow: deploy
- push_branch: "*"
workflow: build
- pull_request_target_branch: "*"
workflow: build
workflows:
build:
envs:
- _JAVA_OPTIONS: -Xms512m -Xmx3584m
steps:
- script:
title: dokka
inputs:
- content: |-
#!/usr/bin/env bash
set -ex
./gradlew dokka
- script:
title: runAnk
inputs:
- content: |-
#!/usr/bin/env bash
set -ex
./gradlew :arrow-docs:runAnk
deploy:
envs:
- _JAVA_OPTIONS: -Xms512m -Xmx3584m
steps:
- script:
title: dokka
inputs:
- content: |-
#!/usr/bin/env bash
set -ex
./gradlew dokka
- script:
title: runAnk
inputs:
- content: |-
#!/usr/bin/env bash
set -ex
./gradlew :arrow-docs:runAnk
- script:
title: deploy
inputs:
- content: |-
#!/usr/bin/env bash
set -ex
aws --version
apt remove -y awscli
pip install awscli
/usr/local/bin/aws --version
bundle check
BUNDLE_CHECK_RESULT=$?
if [[ BUNDLE_CHECK_RESULT -eq 0 ]]; then
echo "All fine, all good with bundler"
else
echo "Updating bundler"
gem uninstall bundler --force
gem install bundler --force
echo "$( gem list | grep bundler )"
fi
bundle install --gemfile modules/docs/arrow-docs/Gemfile --path vendor/bundle
export BUNDLE_GEMFILE=modules/docs/arrow-docs/Gemfile
export JEKYLL_ENV=production
bundle exec jekyll build -s modules/docs/arrow-docs/build/site -d modules/docs/arrow-docs/build/_site
/usr/local/bin/aws s3 sync modules/docs/arrow-docs/build/_site s3://$S3_BUCKET > aws_sync_jekyll.log