forked from pa11y/sidekick
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
52 lines (41 loc) · 1013 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Container version
# (important for modern PostgreSQL)
dist: trusty
sudo: false
# Build matrix
language: node_js
matrix:
include:
# Run linter once
- node_js: '8'
env: LINT=true
# Run unit tests with varying Node.js
# and default PostgreSQL (9.5)
- node_js: '8'
env: NODE=8
# Run integration tests with varying
# PostgreSQL and default Node.js (8)
- node_js: '8'
env: POSTGRES=9.5
addons:
postgresql: '9.5'
- node_js: '8'
env: POSTGRES=9.6
addons:
postgresql: '9.6'
# Global environment variables
env:
global:
- TEST_DATABASE=postgres://postgres:@localhost:5432/pa11y_sidekick_travis
# Services setup
services:
- postgresql
addons:
postgresql: '9.5'
# Build script
before_script:
- psql -c "CREATE DATABASE pa11y_sidekick_travis" -U postgres
script:
- 'if [ $LINT ]; then make verify; fi'
- 'if [ $NODE ]; then make test-unit-coverage; fi'
- 'if [ $POSTGRES ]; then make test-integration; fi'