-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
35 lines (34 loc) · 1.08 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
os:
- linux
- osx
language: generic
sudo: required
dist: trusty
osx_image: xcode8
install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
brew install mysql;
brew link mysql;
mysql.server start;
fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
sudo apt-get update;
sudo apt-get install -y mysql-server libmysqlclient-dev;
sudo mysql_install_db;
fi
- mysql -u root --password="" -e 'create database titan;'
- eval "$(curl -sL https://swift.vapor.sh/swift-install)"
script:
# Build MySQL
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
swift build -Xswiftc -I/usr/local/include/mysql -Xlinker -L/usr/local/lib;
swift build --configuration release -Xswiftc -I/usr/local/include/mysql -Xlinker -L/usr/local/lib;
swift test -Xswiftc -I/usr/local/include/mysql -Xlinker -L/usr/local/lib;
fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
swift build -Xswiftc -DNOJSON;
swift build --configuration release -Xswiftc -DNOJSON;
swift test -Xswiftc -DNOJSON;
fi
after_success:
- bash <(curl -s https://codecov.io/bash)