forked from tulayang/asyncmysql
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
41 lines (34 loc) · 1.02 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
language: c
os:
- linux
- osx
compiler:
- gcc
services:
mysql
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' identified by '123456';"
- 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' identified by '123456';"
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 ..
- nimble install -y
script:
- nim test