-
Notifications
You must be signed in to change notification settings - Fork 81
/
Copy path.travis.yml
76 lines (68 loc) · 1.78 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
language: node_js
node_js:
- '8'
- '10'
- 'node'
branches:
only:
- master
- /^\d+\.\d+\.\d+$/
cache:
directories:
- node_modules
before_script:
- npm list --depth=0 # Prints the installed dependency versions.
- export PYTHONPATH=.
- export CLARIFAI_APP_ID="$(python scripts/app_and_key_for_tests.py --create-app javascript-travis)"
- export CLARIFAI_API_KEY="$(python scripts/app_and_key_for_tests.py --create-key ${CLARIFAI_APP_ID})"
script:
- npm run test
- npm run build
after_script:
- export PYTHONPATH=.
- python scripts/app_and_key_for_tests.py --delete-app $CLARIFAI_APP_ID
deploy:
- provider: s3
access_key_id: ${AWS_ACCESS_KEY_ID}
secret_access_key: ${AWS_SECRET_ACCESS_KEY}
bucket: ${AWS_BUCKET}
skip_cleanup: true
acl: public_read
upload-dir: js
cache_control: "max-age=21600, no-transform, public"
local_dir: sdk
on:
node_js: 10
tags: true
repo: Clarifai/clarifai-javascript
- provider: s3
access_key_id: ${AWS_ACCESS_KEY_ID}
secret_access_key: ${AWS_SECRET_ACCESS_KEY}
bucket: ${AWS_BUCKET}
skip_cleanup: true
acl: public_read
upload-dir: js
cache_control: "max-age=21600, no-transform, public"
local_dir: docs
on:
node_js: 10
tags: true
repo: Clarifai/clarifai-javascript
- provider: npm
email: [email protected]
api_key: ${NPM_TOKEN}
skip_cleanup: true
on:
node_js: 10
tags: true
repo: Clarifai/clarifai-javascript
- provider: releases
skip_cleanup: true
api_key: ${GITHUB_TOKEN}
file_glob: true
file: sdk/*
on:
node_js: 10
tags: true
repo: Clarifai/clarifai-javascript
after_deploy: cd examples && npm i clarifai@latest && CLARIFAI_API_KEY=${API_KEY} node index && cd ..