-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
50 lines (50 loc) · 1.14 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
dist: trusty
language: node_js
services:
- postgresql
node_js:
- lts/erbium
install:
- npm ci
cache:
directories:
- $HOME/.npm
jobs:
include:
-
stage: test
before_script:
- psql -c 'create database eb_db_test;' -U postgres
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
script:
- npm test
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
-
stage: publish
script: npm run build
deploy:
-
provider: pages
github_token: $GITHUB_TOKEN
skip_cleanup: true
keep_history: true
local_dir: ./docs/eris-boiler/$TRAVIS_TAG
committer_from_gh: true
on:
tags: true
-
provider: npm
email: $NPM_EMAIL
api_key: $NPM_API_KEY
on:
tags: true
stages:
-
name: test
if: type = pull_request OR branch =~ /^(master|dev)$/
-
name: publish
if: tag IS present