forked from BlueHotDog/sails-migrations
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
28 lines (20 loc) · 779 Bytes
/
.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
# .travis.yml
language: node_js
addons:
postgresql: "9.3"
node_js:
- "0.10.28"
env:
- SAILS_ADAPTER_NAME=postgresql
- SAILS_ADAPTER_NAME=mysql
before_install:
- sudo apt-get update -qq
- sudo apt-get install -y parallel
before_script:
- sh -c "if [ '$SAILS_ADAPTER_NAME' = 'postgresql' ]; then psql -c 'create database travis_ci_test;' -U postgres; fi"
- sh -c "if [ '$SAILS_ADAPTER_NAME' = 'mysql' ]; then mysql -e 'create database travis_ci_test;'; fi"
- npm link .
- cd test/fixtures/sample_apps/
- "parallel --gnu -j1 'cd {} && cp config/adapters.{travis.temp,js} && npm install' ::: 0.9.*"
- "parallel --gnu -j1 'cd {} && cp config/connections.{travis.temp,js} && cp config/models.{travis.temp,js} && npm install' ::: 0.10*"
- cd ../../../