-
Notifications
You must be signed in to change notification settings - Fork 0
/
codemagic.yaml
38 lines (37 loc) · 947 Bytes
/
codemagic.yaml
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
workflows:
my-workflow:
environment:
ruby: 3.1.2
cache:
cache_paths:
- $CM_BUILD_DIR/.bundle
scripts:
- name: View env
script: |
set -e # exit on first failed command
ruby -v
mkdir -p .bundle
echo '
---
BUNDLE_DEPLOYMENT: "true"
BUNDLE_PATH: "$CM_BUILD_DIR/bundle"
BUNDLE_WITHOUT: "development:production"
' > .bundle/config
cat .bundle/config
gem install bundler:2.2.32
- name: Install dependencies
script: |
bundle lock --add-platform x86_64-darwin-21
bundle install
- name: Run tests
script: bundle exec rake
triggering:
events:
- push
- pull_request
branch_patterns:
- pattern: "*"
- pattern: master
- pattern: develop
include: false
cancel_previous_builds: true