forked from Bouke/Lark
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
34 lines (34 loc) · 1.06 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
language: generic
script: swift test
matrix:
include:
- os: osx
osx_image: xcode9.4
- os: osx
osx_image: xcode10
- os: linux
dist: trusty
install:
- wget https://swift.org/builds/swift-4.1.3-release/ubuntu1404/swift-4.1.3-RELEASE/swift-4.1.3-RELEASE-ubuntu14.04.tar.gz
- tar xzf swift-4.1.3-RELEASE-ubuntu14.04.tar.gz
- export PATH=`pwd`/swift-4.1.3-RELEASE-ubuntu14.04/usr/bin:"${PATH}"
- os: linux
dist: trusty
install:
- wget https://swift.org/builds/swift-4.2-release/ubuntu1404/swift-4.2-RELEASE/swift-4.2-RELEASE-ubuntu14.04.tar.gz
- tar xzf swift-4.2-RELEASE-ubuntu14.04.tar.gz
- export PATH=`pwd`/swift-4.2-RELEASE-ubuntu14.04/usr/bin:"${PATH}"
- name: Code Quality Checks
os: osx
osx_image: xcode10
install:
- brew update
- brew upgrade swiftlint || true
addons:
sonarcloud:
organization: bouke-github
script:
- swiftlint --strict
- sonar-scanner
allow_failures:
- os: linux