-
Notifications
You must be signed in to change notification settings - Fork 26
/
.travis.yml
executable file
·51 lines (51 loc) · 1.31 KB
/
.travis.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
language: objective-c
os: osx
osx_image: xcode12.4
before_install:
- rvm install 2.5.1
- bundle install --without=documentation
- bundle update fastlane
#- carthage update --use-xcframeworks
env:
global:
- APPNAME="SnackView"
- FASTLANE_FOLDER="fastlane"
- BUILD_FOLDER="Build"
- TRAVIS_FASTLANE_BASE_DIR=$TRAVIS_BUILD_DIR/$FASTLANE_FOLDER
- CC_TEST_REPORTER_ID="f835b1f14aec8efeacfcf7b2a670dc854326da4af496dc1cc21d225436b5451c"
- LC_CTYPE=en_US.UTF-8 LANG=en_US.UTF-8
jobs:
include:
- stage: test
name: Fastlane scan
before_script:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-darwin-amd64
> ./cc-test-reporter
- chmod +x ./cc-test-reporter
- "./cc-test-reporter before-build"
script:
- bundle exec fastlane test_with_coverage
after_success:
- "./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT"
- stage: release
name: Tag Version
if: "(branch = master)"
script:
- bundle exec create_release
stages:
- test
- name: release
if: (branch = master) AND (type != pull_request) AND (tag =~ /v\d\.\d{1,3}\.\d{1,3}$/)
branches:
only:
- master
- development
- develop
- "/^(hotfix)$*/"
except:
- "/^[^\\/]+\\/\\d+(?:\\.\\d+)+\\/\\d+$/"
language: ruby
cache:
bundler: true
directories:
- Carthage