-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
52 lines (52 loc) · 1.21 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
---
addons:
apt:
packages:
- clang
- curl
- binutils
- git
- libc6-dev
- libcurl4
- libedit2
- libpython2.7
- libxml2
- libz3-dev
- pkg-config
- tzdata
update: true
language: generic
matrix:
include:
-
os: osx
osx_image: xcode11.3
-
os: osx
osx_image: xcode11.6
-
os: osx
osx_image: xcode12
-
arch: amd64
dist: focal
install:
- SWIFT_VERSION=swift-5.3-RELEASE
- "SWIFT_URL=https://swift.org/builds/swift-5.3-release/ubuntu2004/swift-5.3-RELEASE/swift-5.3-RELEASE-ubuntu20.04.tar.gz"
- SWIFT_DIR=tests
- "mkdir $SWIFT_DIR"
- "curl $SWIFT_URL -s | tar xz -C $SWIFT_DIR &> /dev/null"
- "export PATH=$(pwd)/tests/$SWIFT_VERSION-ubuntu20.04/usr/bin:\"${PATH}\""
os: linux
-
arch: arm64
dist: focal
install:
- "curl -s https://packagecloud.io/install/repositories/swift-arm/release/script.deb.sh | sudo bash"
- "sudo apt install -y swiftlang"
os: linux
script:
- "uname -a"
- "swift --version"
- "if [[ \"$TRAVIS_OS_NAME\" == \"osx\" ]]; then swift test ; fi"
- "swift build -c release"