Skip to content

Commit 5fd7ed8

Browse files
Merge branch 'trunk' into sanitize-version-code-android
2 parents 5479051 + d6b1f42 commit 5fd7ed8

File tree

326 files changed

+24595
-5883
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

326 files changed

+24595
-5883
lines changed

.buildkite/gem-push.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/bash -eu
2+
3+
GEM_NAME="fastlane-plugin-wpmreleasetoolkit"
4+
5+
echo "--- :hammer: Build Gemspec"
6+
gem build "$GEM_NAME.gemspec" -o "$GEM_NAME.gem"
7+
8+
echo "--- :sleuth_or_spy: Validate Gem Install"
9+
gem install --user-install "$GEM_NAME.gem"
10+
11+
echo "--- :rubygems: Gem Push"
12+
echo ":rubygems_api_key: ${RUBYGEMS_API_KEY}" >>".gem-credentials"
13+
chmod 600 ".gem-credentials"
14+
gem push --config-file ".gem-credentials" "$GEM_NAME.gem"

.buildkite/pipeline.yml

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
# Nodes with values to reuse in the pipeline.
2+
common_params:
3+
env: &xcode_image
4+
IMAGE_ID: xcode-14.1
5+
plugins:
6+
- &docker_plugin
7+
docker#v3.8.0:
8+
image: &ruby_version "ruby:2.7.4"
9+
propagate-environment: true
10+
environment:
11+
- "RUBYGEMS_API_KEY"
12+
- &docker_plugin_with_danger_token
13+
docker#v3.8.0:
14+
image: *ruby_version
15+
propagate-environment: true
16+
environment:
17+
- "DANGER_GITHUB_API_TOKEN"
18+
19+
20+
steps:
21+
#################
22+
# Build and Test
23+
#################
24+
- label: "🧪 Build and Test"
25+
key: test
26+
command: |
27+
# We only need this for tasks running on a Mac
28+
brew install pkg-config git-lfs libxml2 imagemagick@6
29+
30+
echo "--- :git: Setting up git-lfs"
31+
git-lfs install
32+
33+
echo "--- :rubygems: Setting up Gems"
34+
# https://github.com/Automattic/bash-cache-buildkite-plugin/issues/16
35+
gem install bundler
36+
install_gems
37+
38+
echo "--- :rspec: Run Rspec"
39+
bundle exec rspec --profile 10 --format progress
40+
env: *xcode_image
41+
plugins:
42+
- automattic/a8c-ci-toolkit#2.15.0
43+
agents:
44+
queue: "mac"
45+
46+
#################
47+
# Lint
48+
#################
49+
- label: "🧹 Lint (Rubocop)"
50+
key: rubocop
51+
command: |
52+
bundle install
53+
echo "--- :rubocop: Run Rubocop"
54+
bundle exec rubocop
55+
plugins: [*docker_plugin]
56+
agents:
57+
queue: "default"
58+
59+
#################
60+
# Danger
61+
#################
62+
- label: "⛔️ Danger"
63+
key: danger
64+
command: |
65+
bundle install
66+
echo "--- :rubocop: Run Danger"
67+
bundle exec danger
68+
plugins: [*docker_plugin_with_danger_token]
69+
agents:
70+
queue: "default"
71+
72+
#################
73+
# Push to RubyGems
74+
#################
75+
- label: ":rubygems: Publish to RubyGems"
76+
key: "gem-push"
77+
if: build.tag != null
78+
depends_on:
79+
- test
80+
- rubocop
81+
- danger
82+
# Note: We intentionally call a separate `.sh` script here (as opposed to having all the
83+
# commands written inline) to avoid leaking a key used in the process in clear in the
84+
# BUILDKITE_COMMAND environment variable.
85+
command: .buildkite/gem-push.sh
86+
plugins: [*docker_plugin]
87+
agents:
88+
queue: "default"

.bundle/config

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
BUNDLE_PATH: "vendor/bundle"
3+
BUNDLE_FORCE_RUBY_PLATFORM: "true"
4+
BUNDLE_SPECIFIC_PLATFORM: "false"
5+
BUNDLE_JOBS: "16"

.circleci/.brewfile

Lines changed: 0 additions & 3 deletions
This file was deleted.

.circleci/config.yml

Lines changed: 0 additions & 61 deletions
This file was deleted.

.editorconfig

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# top-most EditorConfig file
2+
root = true
3+
4+
# Apply to all files
5+
[*]
6+
end_of_line = lf
7+
insert_final_newline = true
8+
trim_trailing_whitespace = true
9+
10+
# Kotlin specific rules
11+
[*.{kt,kts}]
12+
max_line_length=120
13+
14+
# Ruby specific rules
15+
[{*.rb,Fastfile,Gemfile}]
16+
indent_style = space
17+
indent_size = 2
18+
19+

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
## What does it do?
2+
3+
## Checklist before requesting a review
4+
5+
- [ ] Run `bundle exec rubocop` to test for code style violations and recommendations
6+
- [ ] Add Unit Tests (aka `specs/*_spec.rb`) if applicable
7+
- [ ] Run `bundle exec rspec` to run the whole test suite and ensure all your tests pass
8+
- [ ] Make sure you added an entry in [the `CHANGELOG.md` file](https://github.com/wordpress-mobile/release-toolkit/blob/trunk/CHANGELOG.md#trunk) to describe your changes under the appropriate existing `###` subsection of the existing `## Trunk` section.
9+
- [ ] If applicable, add an entry in [the `MIGRATION.md` file](https://github.com/wordpress-mobile/release-toolkit/blob/trunk/MIGRATION.md) to describe how the changes will affect the migration from the previous major version and what the clients will need to change and consider.

.github/workflows/ci.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

.gitignore

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,28 @@
11
.DS_Store
22
/tmp
33

4+
# JetBrains IDE files
5+
.idea
6+
7+
# VSCode IDE files
8+
.vscode
9+
410
# Ruby / Bundler
5-
.bundle/
11+
vendor/bundle
612

713
# Fastlane
814
fastlane/README.md
915
fastlane/report.xml
1016

1117
# Testing
12-
/test_results
13-
/coverage
14-
15-
# DrawText
16-
/lib/drawText
17-
/lib/drawText.bundle
18-
/ext/drawText/drawText.xcodeproj/xcuserdata
19-
/ext/drawText/drawText.xcodeproj/project.xcworkspace/xcuserdata
20-
/ext/drawText/test-output
21-
/default.profraw
18+
test_results/
19+
coverage/
20+
21+
# YARD Documentation
22+
yard-doc/
23+
24+
# L10n Linter
25+
vendor/swiftgen
26+
27+
# Build Products
28+
*.gem

.rspec

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
--color
2+
--format documentation

0 commit comments

Comments
 (0)