-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
52 lines (43 loc) · 1.46 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
language: c
services:
mysql
matrix:
include:
# Build and test against the master (stable) and devel branches of Nim
- os: linux
compiler: gcc
# On OSX we only test against clang (gcc is mapped to clang by default)
- os: osx
env: CHANNEL=stable
compiler: clang
allow_failures:
# Ignore failures when building against the devel Nim branch
# Also ignore OSX, due to very long build queue
- os: osx
fast_finish: true
before_install:
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
HOMEBREW_NO_AUTO_UPDATE=1 brew install mysql;
mysql.server start;
fi
- mysql -h 127.0.0.1 -u root -e "create database if not exists test;"
- mysql -h 127.0.0.1 -u root -e "create user 'mysql'@'127.0.0.1' identified by '123456';"
- mysql -h 127.0.0.1 -u root -e "grant all on *.* to 'mysql'@'127.0.0.1';"
- mysql -h 127.0.0.1 -u root -e "create user 'mysql2'@'127.0.0.1' identified by '123456';"
- mysql -h 127.0.0.1 -u root -e "grant all on *.* to 'mysql2'@'127.0.0.1';"
install:
- set -e
- git clone -b devel --depth 1 https://github.com/nim-lang/Nim.git
- cd Nim
- git clone --depth 1 https://github.com/nim-lang/csources.git
- cd csources
- sh build.sh
- cd ..
- bin/nim c koch
- ./koch boot -d:release
- ./koch nimble
- export PATH=$(pwd)/bin:$PATH
- cd ..
# - if [[ $TRAVIS_OS_NAME == 'osx' ]]; then rvm get head; fi # fix osx ``shell_session_update: command not found``
script:
- nim test