UNPKG

1.58 kBYAMLView Raw
1language: node_js
2node_js: '6'
3matrix:
4 include:
5 - os: linux
6 env:
7 - VERSION=0.21.0
8 - os: linux
9 env:
10 - VERSION=0.22.0
11 - os: linux
12 env:
13 - VERSION=0.23.0
14 - os: linux
15 env:
16 - VERSION=0.24.0
17 - os: linux
18 env:
19 - VERSION=0.25.0
20 - os: linux
21 env:
22 - VERSION=0.26.0
23 - os: linux
24 env:
25 - VERSION=0.26.1
26 - os: osx
27 osx_image: xcode9
28 env:
29 - VERSION=0.21.0
30 - os: osx
31 osx_image: xcode9
32 env:
33 - VERSION=0.22.0
34 - os: osx
35 osx_image: xcode9
36 env:
37 - VERSION=0.23.0
38 - os: osx
39 osx_image: xcode9
40 env:
41 - VERSION=0.24.0
42 - os: osx
43 osx_image: xcode9
44 env:
45 - VERSION=0.25.0
46 - os: osx
47 osx_image: xcode9
48 env:
49 - VERSION=0.26.0
50 - os: osx
51 osx_image: xcode9
52 env:
53 - VERSION=0.26.1
54services:
55 - mysql
56before_install:
57 - OS=linux
58 - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
59 rvm install ruby-2.4.0;
60 rvm --default use 2.4.0;
61 ruby -v;
62 brew update;
63 brew install xz;
64 OS=darwin;
65 brew install mariadb;
66 mysql.server start;
67 fi
68 - mysql -uroot -e 'CREATE DATABASE IF NOT EXISTS `fxjs-orm-test`;';
69script:
70 - npm i
71 - mkdir -p ./node_modules/.bin
72 - curl -SL "https://github.com/fibjs/fibjs/releases/download/v${VERSION}/fibjs-v${VERSION}-${OS}-x64.xz" -o ./node_modules/.bin/fibjs.xz
73 - xz -d ./node_modules/.bin/fibjs.xz
74 - chmod a+x ./node_modules/.bin/fibjs
75 - npm run ci