-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
63 lines (54 loc) · 1.65 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
53
54
55
56
57
58
59
60
61
62
63
sudo: required
language: node_js
cache:
directories:
- node_modules
addons:
postgresql: "9.5"
apt:
packages:
- postgresql-9.5-postgis-2.3
notifications:
email: false
node_js:
- '6'
env:
- COVERAGE=false
before_install:
- cd ~
- wget https://sqlite.org/2017/sqlite-autoconf-3160200.tar.gz
- tar xvfz sqlite-autoconf-3160200.tar.gz
- cd sqlite-autoconf-3160200
- ./configure
- sudo make
- sudo make install
- cd /home/travis/build/evansiroky/gtfs-sequelize
- sqlite3 -version
- mysql -uroot -e 'CREATE DATABASE gtfs_sequelize_test;'
- mysql -uroot -e "GRANT ALL PRIVILEGES ON gtfs_sequelize_test.* TO 'gtfs_sequelize'@'localhost' IDENTIFIED BY 'gtfs_sequelize';"
- mysql -uroot -e "FLUSH PRIVILEGES;"
- psql -U postgres -c 'CREATE DATABASE gtfs_sequelize_test;'
- psql gtfs_sequelize_test -U postgres -c 'CREATE EXTENSION postgis;'
- psql -U postgres -c "CREATE USER gtfs_sequelize PASSWORD 'gtfs_sequelize';"
- psql -U postgres -c 'CREATE ROLE gtfs_sequelize_role;'
- psql -U postgres -c 'GRANT gtfs_sequelize_role TO gtfs_sequelize;'
- psql -U postgres -c 'GRANT ALL ON DATABASE gtfs_sequelize_test TO gtfs_sequelize_role;'
- psql gtfs_sequelize_test -U postgres -c 'CREATE SCHEMA test_schema;'
- psql gtfs_sequelize_test -U postgres -c 'GRANT ALL ON SCHEMA test_schema TO PUBLIC;'
matrix:
fast_finish: true
include:
- node_js: "6"
env: COVERAGE=true
script: "npm run codeclimate"
allow_failures:
- node_js: "6"
env: COVERAGE=true
script: "npm run codeclimate"
before_script:
- npm prune
after_success:
- npm run semantic-release
branches:
except:
- /^v\d+\.\d+\.\d+$/