Skip to content

Commit be94f26

Browse files
committed
Test node 6 and 8
1 parent d4bbde6 commit be94f26

File tree

1 file changed

+49
-44
lines changed

1 file changed

+49
-44
lines changed

.travis.yml

Lines changed: 49 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
language: node_js
22
node_js:
3-
- '6'
3+
- '6'
4+
- '8'
45
branches:
56
only:
67
- master
@@ -9,50 +10,54 @@ cache:
910
directories:
1011
- node_modules
1112
before_script:
12-
- chmod +x token.sh
13+
- chmod +x token.sh
1314
script:
14-
- source token.sh
15-
- npm run test
16-
- npm run build
15+
- source token.sh
16+
- npm run test
17+
- npm run build
1718
deploy:
18-
- provider: s3
19-
access_key_id: ${AWS_ACCESS_KEY_ID}
20-
secret_access_key: ${AWS_SECRET_ACCESS_KEY}
21-
bucket: ${AWS_BUCKET}
22-
skip_cleanup: true
23-
acl: public_read
24-
upload-dir: js
25-
cache_control: "max-age=21600, no-transform, public"
26-
local_dir: sdk
27-
on:
28-
tags: true
29-
repo: Clarifai/clarifai-javascript
30-
- provider: s3
31-
access_key_id: ${AWS_ACCESS_KEY_ID}
32-
secret_access_key: ${AWS_SECRET_ACCESS_KEY}
33-
bucket: ${AWS_BUCKET}
34-
skip_cleanup: true
35-
acl: public_read
36-
upload-dir: js
37-
cache_control: "max-age=21600, no-transform, public"
38-
local_dir: docs
39-
on:
40-
tags: true
41-
repo: Clarifai/clarifai-javascript
42-
- provider: npm
43-
44-
api_key: ${NPM_TOKEN}
45-
skip_cleanup: true
46-
on:
47-
tags: true
48-
repo: Clarifai/clarifai-javascript
49-
- provider: releases
50-
skip_cleanup: true
51-
api_key: ${GITHUB_TOKEN}
52-
file_glob: true
53-
file: sdk/*
54-
on:
55-
tags: true
56-
repo: Clarifai/clarifai-javascript
19+
- provider: s3
20+
access_key_id: ${AWS_ACCESS_KEY_ID}
21+
secret_access_key: ${AWS_SECRET_ACCESS_KEY}
22+
bucket: ${AWS_BUCKET}
23+
skip_cleanup: true
24+
acl: public_read
25+
upload-dir: js
26+
cache_control: "max-age=21600, no-transform, public"
27+
local_dir: sdk
28+
on:
29+
node_js: '8'
30+
tags: true
31+
repo: Clarifai/clarifai-javascript
32+
- provider: s3
33+
access_key_id: ${AWS_ACCESS_KEY_ID}
34+
secret_access_key: ${AWS_SECRET_ACCESS_KEY}
35+
bucket: ${AWS_BUCKET}
36+
skip_cleanup: true
37+
acl: public_read
38+
upload-dir: js
39+
cache_control: "max-age=21600, no-transform, public"
40+
local_dir: docs
41+
on:
42+
node_js: '8'
43+
tags: true
44+
repo: Clarifai/clarifai-javascript
45+
- provider: npm
46+
47+
api_key: ${NPM_TOKEN}
48+
skip_cleanup: true
49+
on:
50+
node_js: '8'
51+
tags: true
52+
repo: Clarifai/clarifai-javascript
53+
- provider: releases
54+
skip_cleanup: true
55+
api_key: ${GITHUB_TOKEN}
56+
file_glob: true
57+
file: sdk/*
58+
on:
59+
node_js: '8'
60+
tags: true
61+
repo: Clarifai/clarifai-javascript
5762

5863
after_deploy: cd examples && npm i clarifai@latest && CLARIFAI_API_KEY=${API_KEY} node index && cd ..

0 commit comments

Comments
 (0)