-
Notifications
You must be signed in to change notification settings - Fork 41
/
.travis.yml
61 lines (50 loc) · 1.4 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
matrix:
include:
- os: linux
language: generic
sudo: required
dist: trusty
- os: osx
language: objective-c
osx_image: xcode11.2
before_install:
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then
eval "$(curl -sL https://apt.vapor.sh)";
sudo apt-get install ctls;
fi
- if [ $TRAVIS_OS_NAME == "osx" ]; then
gem install xcpretty -N --no-ri --no-rdoc;
brew update;
brew tap vapor/homebrew-tap;
brew install vapor/tap/vapor;
fi
install:
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then
eval "$(curl -sL https://swiftenv.fuller.li/install.sh)";
fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then
./install_swiftlint.sh;
fi
script:
- set -o pipefail
- swift -version
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then
swiftlint;
fi
- swift build
- swift package clean
- swift build -c release
- swift package clean
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then
swift package generate-xcodeproj --enable-code-coverage;
xcodebuild clean test -project SwiftyBot.xcodeproj -scheme SwiftyBot-Package -destination arch=x86_64 -enableCodeCoverage YES | xcpretty;
fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then
swift package clean;
ruby generate_linux_tests.rb;
swift test;
fi
after_success:
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then
bash <(curl -s https://codecov.io/bash);
fi