Skip to content

Commit 73de4e0

Browse files
committed
write docs
1 parent abab97a commit 73de4e0

File tree

2 files changed

+34
-12
lines changed

2 files changed

+34
-12
lines changed

.semaphore/semaphore.yml

+21-12
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ blocks:
4141
# complete in about a second.
4242
# See https://docs.semaphoreci.com/article/68-caching-dependencies
4343
- cache restore
44+
45+
# Fix for: `find_spec_for_exe': can't find gem bundler erro
46+
# Look at the end of Gemfile.lock, under BUNDLED WITH
47+
# and simply install the required version before calling bundle install
48+
- gem install bundler -v '2.1.4'
4449
- bundle install --path vendor/bundle
4550
- cache store
4651
jobs:
@@ -60,22 +65,25 @@ blocks:
6065
env_vars:
6166
- name: LANG
6267
value: en_US.UTF-8
63-
#secrets:
68+
secrets:
6469
# Make the SSH key for the certificate repository and the MATCH_PASSWORD
6570
# environment variable available.
6671
# See https://docs.semaphoreci.com/article/109-using-private-dependencies
67-
# - name: match-secrets
72+
- name: match-secrets
6873
prologue:
6974
commands:
7075
# Add the key for the match certificate repository to ssh
7176
# See https://docs.semaphoreci.com/article/109-using-private-dependencies
72-
#- chmod 0600 ~/.ssh/*
73-
#- ssh-add ~/.ssh/match-repository-private-key
77+
- chmod 0600 ~/.ssh/*
78+
- ssh-add ~/.ssh/match-repository-private-key
7479
# Continue with checkout as normal
7580
- checkout
7681
- cache restore
77-
# Just in case you hit into this
78-
# https://bundler.io/blog/2019/01/04/an-update-on-the-bundler-2-release.html
82+
83+
84+
# Fix for: `find_spec_for_exe': can't find gem bundler erro
85+
# Look at the end of Gemfile.lock, under BUNDLED WITH
86+
# and simply install the required version before calling bundle install
7987
- gem install bundler -v '2.1.4'
8088
- bundle install --path vendor/bundle
8189
- cache store
@@ -97,19 +105,20 @@ blocks:
97105
commands:
98106
- checkout
99107
- cache restore
100-
# Just in case you hit into this
101-
# https://bundler.io/blog/2019/01/04/an-update-on-the-bundler-2-release.html
108+
109+
# Fix for: `find_spec_for_exe': can't find gem bundler erro
110+
# Look at the end of Gemfile.lock, under BUNDLED WITH
111+
# and simply install the required version before calling bundle install
102112
- gem install bundler -v '2.1.4'
103113
- bundle install --path vendor/bundle
104114
- cache store
105115
jobs:
106116
- name: Screenshots
107117
commands:
108118
- bundle exec xcversion select 12.2
109-
# snapshot seems to sometimes be an issue with fastlane snapshot finding the simular. see runs:
110-
# https://traynt.semaphoreci.com/jobs/99773826-f05a-4080-8555-b8515c7d5e90
111-
# https://traynt.semaphoreci.com/jobs/e17cea1f-7be4-4736-97a8-7f5e8433c975
112-
# thus running first the xcode tools to list the available simulators seems to work
119+
120+
# Fix for fastlane snapshot not allways finding the simular.
121+
# In case you find errors like "Simulator not found", use this workarround
113122
- xcrun simctl list
114123

115124
- bundle exec fastlane screenshots

README.md

+13
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,19 @@ Then, just push any change to your fork of this project and Semaphore will run t
8383

8484
This example Semaphore configuration uses an `a1-standard-4` machine running macOS Mojave with [Xcode 11, fastlane and other build tools pre-installed](https://docs.semaphoreci.com/ci-cd-environment/macos-catalina-xcode-11-image/). Other, larger machine types are [available if needed](https://docs.semaphoreci.com/ci-cd-environment/machine-types/).
8585

86+
## Fork-and-Run VS Master branch
87+
88+
The `master` branch represents a template you can follow to setup your own project on Semaphore. That being said, running it directly on your own account would require first setting the public/private keys as describe in the [Run the CI pipeline on Semaphore](#run-the-ci-pipeline-on-semaphore) section.
89+
90+
For simplicity, on the `fork-and-run` branch we disabled the signing capabilities of this template project so you can safely `fork` and imediatelly `run` it on Semaphore.
91+
92+
The lines that have been commented out for this purpose are clearly marked as
93+
94+
```##### Disable code signing for fork-and-run branch ######```
95+
96+
so you can clearly see what has been removed.
97+
98+
8699
## License
87100

88101
Copyright ©2019 Rendered Text – Distributed under the MIT License. See the [LICENSE](LICENSE) for full terms.

0 commit comments

Comments
 (0)