Skip to content

Commit 47a8387

Browse files
author
natlibfi-arlehiko
committed
Update build environment
1 parent a373256 commit 47a8387

File tree

5 files changed

+1024
-249
lines changed

5 files changed

+1024
-249
lines changed

.drone.yml

+18-14
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
1-
pipeline:
2-
build:
3-
image: node:8
4-
commands:
5-
- npm install
6-
- npm test
7-
- npm run build
8-
npm:
9-
image: plugins/npm
10-
settings:
11-
token: $NPM_TOKEN
12-
secrets: [npm_token]
13-
when:
14-
event: tag
1+
kind: pipeline
2+
name: default
3+
steps:
4+
- name: build
5+
image: node:8
6+
commands:
7+
- npm install
8+
- npm test
9+
- npm run build:transpile
10+
- name: npm
11+
image: plugins/npm
12+
settings:
13+
token:
14+
from_secret: npm_token
15+
when:
16+
event: tag
17+
trigger:
18+
event: [push, tag]

.npmignore

+3
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
coverage
22
.nyc_output
3+
src
4+
.drone.yml
5+
.travis.yml

.travis.yml

+11-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
language: node_js
22
node_js:
33
- 'node'
4-
- '7'
5-
script: npm test
4+
- '8'
5+
before_script:
6+
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
7+
- chmod +x ./cc-test-reporter
8+
- ./cc-test-reporter before-build
9+
install:
10+
- npm install
11+
scripts:
12+
- npm test
13+
after_script:
14+
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT

0 commit comments

Comments
 (0)