This repository has been archived by the owner on Feb 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
/
.travis.yml
63 lines (51 loc) · 1.68 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
52
53
54
55
56
57
58
59
60
61
62
63
language: swift
os: osx
git:
depth: 1
stages:
- name: test
branches:
only:
- master
jobs:
include:
- stage: test
name: Run Unit Tests (iOS, Xcode 11.3)
osx_image: xcode11.3
script: Scripts/test.sh -d "OS=13.3,name=iPhone 11" -d "OS=12.4,name=iPhone X" -d "OS=11.4,name=iPhone SE"
- stage: test
name: Run Unit Tests (macOS, Xcode 11.3)
osx_image: xcode11.3
script: Scripts/test.sh -d "arch=x86_64"
- stage: test
name: Run Unit Tests (tvOS, Xcode 11.3)
osx_image: xcode11.3
script: Scripts/test.sh -d "OS=13.3,name=Apple TV 4K" -d "OS=11.4,name=Apple TV 4K"
- stage: test
name: Build (watchOS, Xcode 11.3)
osx_image: xcode11.3
script: Scripts/build.sh -d "OS=5.3,name=Apple Watch Series 3 - 42mm"
- stage: test
name: Run Unit Tests (iOS, Xcode 11.2)
osx_image: xcode11.2
script: Scripts/test.sh -d "OS=13.2.2,name=iPhone 11"
- stage: test
name: Run Unit Tests (iOS, Xcode 11)
osx_image: xcode11
script: Scripts/test.sh -d "OS=13.0,name=iPhone 11"
- stage: test
name: Swift Build (Swift Package Manager)
osx_image: xcode11
script: swift test
- stage: test
name: Run Unit Tests (Linux)
os: linux
language: generic
dist: bionic
sudo: required
install:
- sudo apt-get install clang libicu-dev
- wget https://swift.org/builds/swift-5.2-release/ubuntu1804/swift-5.2-RELEASE/swift-5.2-RELEASE-ubuntu18.04.tar.gz
- tar xzf swift-5.2-RELEASE-ubuntu18.04.tar.gz
- export PATH="${PWD}/swift-5.2-RELEASE-ubuntu18.04/usr/bin:$PATH"
script: swift test --enable-test-discovery