forked from splitio/javascript-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
65 lines (56 loc) · 1.48 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
language: node_js
node_js:
- "lts/*"
cache: npm
services:
- redis-server
addons:
sonarqube: true
git:
depth: false
before_script:
- npm run test-ts-decls
- npm install
script:
- npm run test-browser-ci
- npm run test-browser-e2e-ci
- npm run test-browser-offline
- npm run test-browser-destroy
- npm run test-browser-errors
- npm run test-browser-push
- 'npm run test-node -- --no-progress'
- 'npm run test-node-e2e -- --no-progress'
- 'npm run test-node-redis -- --no-progress'
- 'npm run test-node-offline -- --no-progress'
- 'npm run test-node-destroy -- --no-progress'
- npm run test-node-errors
- npm run test-node-push
- npm run lint
- BUILD_BRANCH=$TRAVIS_BRANCH BUILD_COMMIT=$TRAVIS_COMMIT npm run rebuild:ci
after_success:
- bash sonar-scanner.sh
deploy:
- provider: s3
access_key_id: ${AWS_ACCESS_KEY_ID_STAGE}
secret_access_key: ${AWS_SECRET_ACCESS_KEY_STAGE}
bucket: aws-development-split-public
region: us-east-1
local_dir: ${TRAVIS_BUILD_DIR}/umd
upload-dir: sdk
skip_cleanup: true
acl: public_read
cache_control: "max-age=31536000, public"
on:
branch: development
- provider: s3
access_key_id: ${AWS_ACCESS_KEY_ID_PROD}
secret_access_key: ${AWS_SECRET_ACCESS_PROD}
bucket: split-public
region: us-east-1
local_dir: ${TRAVIS_BUILD_DIR}/umd
upload-dir: sdk
skip_cleanup: true
acl: public_read
cache_control: "max-age=31536000, public"
on:
branch: master