-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
76 lines (76 loc) · 1.6 KB
/
.travis.yml
File metadata and controls
76 lines (76 loc) · 1.6 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
language: node_js
node_js: '6'
matrix:
include:
- os: linux
env:
- VERSION=0.21.0
- os: linux
env:
- VERSION=0.22.0
- os: linux
env:
- VERSION=0.23.0
- os: linux
env:
- VERSION=0.24.0
- os: linux
env:
- VERSION=0.25.0
- os: linux
env:
- VERSION=0.26.0
- os: linux
env:
- VERSION=0.26.1
- os: osx
osx_image: xcode9
env:
- VERSION=0.21.0
- os: osx
osx_image: xcode9
env:
- VERSION=0.22.0
- os: osx
osx_image: xcode9
env:
- VERSION=0.23.0
- os: osx
osx_image: xcode9
env:
- VERSION=0.24.0
- os: osx
osx_image: xcode9
env:
- VERSION=0.25.0
- os: osx
osx_image: xcode9
env:
- VERSION=0.26.0
- os: osx
osx_image: xcode9
env:
- VERSION=0.26.1
services:
- mysql
before_install:
- OS=linux
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
rvm install ruby-2.4.0;
rvm --default use 2.4.0;
ruby -v;
brew update;
brew install xz;
OS=darwin;
brew install mariadb;
mysql.server start;
fi
- mysql -uroot -e 'CREATE DATABASE IF NOT EXISTS test;';
- mysql -uroot -e 'CREATE DATABASE IF NOT EXISTS orm_migration_test;';
script:
- npm i
- mkdir -p ./node_modules/.bin
- curl -SL "https://github.com/fibjs/fibjs/releases/download/v${VERSION}/fibjs-v${VERSION}-${OS}-x64.xz" -o ./node_modules/.bin/fibjs.xz
- xz -d ./node_modules/.bin/fibjs.xz
- chmod a+x ./node_modules/.bin/fibjs
- npm run ci