-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
40 lines (39 loc) · 4.16 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
language: node_js
node_js:
- "11.10.1"
sudo: true
env:
global:
#s3_host
- secure: KZTC+Y6qNh6PO2qQ7AwXI/sNUo8sHBknQkE3M+HwlbHkjq5OGunhTSk7AcQ+CcoAtYWuCJmP1nb7dk/Fq3d3AG8MtrnKqGEDbAF88Zt18BdlVkXvTez8Kl0D+iCW6IVW4P6/qxV6NLcf+0oEVF/kCL6DQ2UR5kP5D6JsiqsWJnh/Bzs49QzfmV7wTOQo7jAPGcR+VI4R7zGR3n2xHEZJkuIfM9GOLR6dokYLiJnxaQvUp1RjIs+ZDX2er+ksAQfrXkxb6PNmQvb1TPSaeDLQaG8Op6p7uRQsBdCULsOeqREinNCAMlIC0U7WMMIM3oYx9luhgDgV+XFJZr6n7YkoPxPpaFusBJ5dTH1Mmi6YsFZJixlT7PosfBvdKL4OzklVgdvpl/RtYkw6hdP8urVP9kR+WYjPSwqinRhEpYd2TYMXuNq3GV8VWZu7Ia/tAHiEzR+Nk3E6emKYXX++NzMqFl5zA+LsEeeitfKchz4K6w6labcHCNCtZefrJrgmN5SB8xl/gH33SDEgDUh2CLNUSKCtUsh47adEW69F/GuPPRpanTzwRYtosJxN6u6jmXVkbULmrv3TJheAsQXBMD+Yyb/IrcZFpwSZNWQY2OL6NSq59aiebGJgNtlal41bz+Ni21b2eb5Zsp3uTLNF8nth7/Uk/fbZjAJ0b3LfphXAy9g=
#s3_access_key
- secure: yrzl+1jZXIu/4y8QtKidY8+x8GUwVAWv4zcGnk2crLbmfkhHf0+Vm/xnV/NfPJg/bqpS6fuTq8v0+ScbVmqT8qqdIjsnOOvztSmKzfZIs5kW5tAgn47jw9Nl52VBNbsCokakDbVc99yLmLOfO5Bxj/+mpBXjYfpprnn3JzLgD0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V2QfJBfoGFjJc+abN9t3bxYhTmeOTh7lIJrbWDe6Qi6mLxIDomqLw/2EfVBzHAXrQ7HpaAxLHWDOwKzPwqdsi2zkIsObW2zb63qboOH+TFWxiLXe6zxKAC88DNEJLVfzpLV0=
before_script: curl https://rclone.org/install.sh | sudo bash
jobs:
include:
- name: dev
if: "(branch = master) or (tag =~ ^v)"
script:
- set -e
- npm run lint
- npm run test
- npm run build
#- rclone copy dist :s3://auth/sdk/dev/ --s3-access-key-id="$S3_ACCESS_KEY" --s3-endpoint=$S3_HOST --s3-secret-access-key="$S3_SECRET_KEY"
- rclone copy dist :s3://cdn-auth-super-com/authsdk/dev/ --s3-access-key-id=$AWS_CDN_ACCESS_KEY_ID --s3-secret-access-key=$AWS_CDN_ACCESS_SECRET_KEY --s3-region=eu-west-1
- name: release
if: "(tag =~ ^v)"
script:
- set -e
- npm run lint
- npm run test
- npm run build
#- rclone copy dist :s3://auth/sdk/latest/ --s3-access-key-id="$S3_ACCESS_KEY" --s3-secret-access-key="$S3_SECRET_KEY" --s3-endpoint=$S3_HOST
#- rclone copy dist :s3://auth/sdk/$TRAVIS_TAG/ --s3-access-key-id="$S3_ACCESS_KEY" --s3-secret-access-key="$S3_SECRET_KEY" --s3-endpoint=$S3_HOST
- rclone copy dist :s3://cdn-auth-super-com/authsdk/latest/ --s3-access-key-id=$AWS_CDN_ACCESS_KEY_ID --s3-secret-access-key=$AWS_CDN_ACCESS_SECRET_KEY --s3-region=eu-west-1
- rclone copy dist :s3://cdn-auth-super-com/authsdk/$TRAVIS_TAG/ --s3-access-key-id=$AWS_CDN_ACCESS_KEY_ID --s3-secret-access-key=$AWS_CDN_ACCESS_SECRET_KEY --s3-region=eu-west-1
notifications:
email: false
slack:
secure: EfqPW3dwulj/+GsA3mMSTEAJGkt9XJ0YiapBHiiyfoVg0YToqto8st5LcJAhmQ+5XPyvnZ5fyZmOFQbYdLSV4JoZDx5AspObe2C0rM7mcdYA9JzTxseOr48XagZH2KOtf5+fgVuCANmfrxTv2xZAGC37hX9/YFdunG3SEvfmc1j1mSmwQqwDChsEDET6XzcgA/Q3tplLNcfLKXf2j4GR0Y1Lc+E6lsnRmRXeDVW6R9hI4rcfkCeSy+vWzAaa31t9i+O4zxZGcCxlTxKcbDVpBidCfu3pasbAjf+CCApfFNzEWRrfD7Wx77nrbdrUpta663YYB2gqU9/6dVLHbRCZIJMzc5KmAtrdxFC4kSf0V+g72oUXPe/0F6VxhJR68ymW8JZvWuiWCmfVqR4t3O90S1BXlL2Ccw5YOGs1NID6ZiPNn4XYBGp8LGpSqPgq/XCmJQgwYb7+ASZAj+P5EOjTrEHZJ01n/jxgRsmGxq6MYlFSywfeVxgRLL5ZJSTj1u05s+UadYtrUD6dN3dJaX+j5ZN/x4Su1FbT8KFKYzNmabQH9ireNzdvfZJkSPpxC1IByRB7LZWvDNCce0kCmqvBP9r7XVmRp7UNPIr2Zxyghq/6wGfxMTqZUN3vgJIqBwm+NumjbyIhAFFavBcRXlelVmL+khpNMof6X/DJ3n7fbG0=