-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
29 lines (29 loc) · 878 Bytes
/
.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
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
before_script: cd ZWeatherServer
script:
- eval "$(curl -sL swift.qutheory.io/travis)"
- 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;
fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
swift build -Xswiftc -DNOJSON;
swift build --configuration release -Xswiftc -DNOJSON;
fi