/
.travis.yml
30 lines (29 loc) · 1.01 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
language: generic
sudo: required
matrix:
include:
- os: linux
dist: trusty
env: PERFORM_MAKE_TEST=1
- os: osx
osx_image: xcode8
env: PERFORM_XCODEBUILD=1 PERFORM_MAKE_TEST=1
addons:
mariadb: '10.1'
env:
global:
- SWIFT_VERSION=DEVELOPMENT-SNAPSHOT-2016-09-04-a
- TOOLCHAINS=org.swift.3020160904a
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install mariadb; fi
install:
- eval "$(curl -sL https://gist.githubusercontent.com/kylef/5c0475ff02b7c7671d2a/raw/02090c7ede5a637b76e6df1710e83cd0bbe7dcdf/swiftenv-install.sh)"
before_script:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then mysql.server start; fi
- mysql -u root -e "create database IF NOT EXISTS test;"
script:
- make debug
- make release
- if [[ "$PERFORM_MAKE_TEST" == "1" ]]; then make test; fi
- if [[ "$PERFORM_XCODEBUILD" == "1" ]]; then xcodebuild -project OSX\ Projects/MySQL/MySQL.xcodeproj -scheme MySQL build test ; fi