-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.travis.yml
48 lines (43 loc) · 1.05 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
branches:
only:
- master
language: node_js
node_js:
- node
script: echo "Running tests against $(node -v)..."
before_install:
- npm update
install:
- npm install
- npm run build
git:
depth: false
cache:
directories:
- node_modules
jobs:
include:
- stage: Produce Coverage
if: branch = master AND type = pull_request
node_js: node
script: jest --coverage && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage
- stage: Deploy on NPM
if: branch = master AND type = push AND commit_message =~ /(newRelease_v|wip)/
before_deploy:
- npm run postBuild
- git checkout
deploy:
# Deploy Surge
- provider: surge
skip_cleanup: true
domain: react-prebid-rubicon.surge.sh
on:
branch: master
# Deploy NPM
- provider: npm
email: $NPM_EMAIL
api_key: $NPM_TOKEN
skip_cleanup: true
on:
branch: master
repo: AntoineJac/react-prebid-rubicon