-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
49 lines (37 loc) · 1.17 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
language: swift
osx_image: xcode12.5.1
gemfile: Gemfile
branches:
only:
- main
cache:
- cocoapods
- bundler
- $HOME/Library/Caches/Homebrew
env:
global:
- LANG=en_US.UTF-8
- IOS_SCHEME="MyDictionary_App_Swift"
- IOS_SDK=iphonesimulator14.5
# iOS Destinations
- IOS_DESTINATION_14_5="OS=14.5,name=iPhone 12"
# Codecov Token
- CODECOV_TOKEN=${{ secrets.CODECOV_TOKEN }}
before_install:
# Bundler 2.0
- gem update --system
- gem install bundler -v 2.2.27
jobs:
include:
# Unit Tests
- &unit-tests
stage: tests
name: "Tests: iOS 14.5"
env: DESTINATION="$IOS_DESTINATION_14_5" WORKSPACE="MyDictionary_App_Swift.xcworkspace" SDK="$IOS_SDK" SCHEME="$IOS_SCHEME"
script:
- set -o pipefail
- xcodebuild -scheme "$SCHEME" -workspace "$WORKSPACE" -sdk "$SDK" -destination "$DESTINATION" -configuration Debug ONLY_ACTIVE_ARCH=NO CODE_SIGNING_REQUIRED=NO GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES GCC_GENERATE_TEST_COVERAGE_FILES=YES ONLY_ACTIVE_ARCH=YES build test | bundle exec xcpretty -c;
after_success:
- bash <(curl -s https://codecov.io/bash) -t "$CODECOV_TOKEN"
stages:
- tests