forked from novi/mysql-swift
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
27 lines (27 loc) · 856 Bytes
/
.travis.yml
File metadata and controls
27 lines (27 loc) · 856 Bytes
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
language: generic
sudo: required
dist: trusty
osx_image: xcode8.3
os:
- linux
- osx
env:
global:
- PERFORM_MAKE_TEST=1
matrix:
- SWIFT_VERSION=3.0.2
- SWIFT_VERSION=3.1
addons:
mariadb: '10.1'
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install mariadb; fi
install:
- if [[ "$SWIFT_VERSION" != "3.1" ]] || [[ "$TRAVIS_OS_NAME" != "osx" ]]; then eval "$(curl -sL https://gist.githubusercontent.com/kylef/5c0475ff02b7c7671d2a/raw/02090c7ede5a637b76e6df1710e83cd0bbe7dcdf/swiftenv-install.sh)" ; fi
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