forked from date-fns/date-fns
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
68 lines (63 loc) · 1.67 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
# Environment
sudo: false
language: node_js
node_js:
- 4
branches:
only:
- master
# Build git tags
- "/v\\d\\.\\d\\.\\d(-\\w+)?/"
# Tests
script:
- yarn run lint
- yarn run flow-check
- yarn run systemjs-check
- yarn run test-ci
- # TODO: Enable when SauceLabs become reliable
- # '[ "${SAUCE_USERNAME}" = "" ] || yarn run test-cross-browser'
- yarn run test-tz
- yarn run test-tz-extended
- yarn run count-tests
# Deployment
before_deploy:
# Build gzip files before S3 deployment
- yarn run build-gzip
deploy:
- provider: s3
access_key_id: AKIAIXPFOIIE7FDYPAXA
secret_access_key:
secure: FPFCB5gn77ureKrRHbGZ6eF7mveemLt45FaU5g2jp5jjIjubQAwygI6KpmqmXgXEyv9u+bSYipYwCRvaN8YTiD1woEOF+6RENFMuGVYEqIMgfmAzQKGt+OEc9dhzgcnxFxPaW3il9/Eeq/S8zDCAykvJ5zv6DDm8k3oCHOvbJaY=
bucket: date-fns
local-dir: "dist/compressed"
upload-dir: "$TRAVIS_TAG"
acl: public_read
detect_encoding: true
cache_control: public, max-age=3122064000, s-maxage=3122064000
expires: '2099-12-31 00:00:00 -0000'
region: eu-central-1
on:
tags: true
- provider: releases
api_key:
secure: TmrPh4zKfdTbMk/qaAPXKDaVEV72DFJK1cQLOOnAfk8zYeC2GITX5DfsxgLZNdZkvmIjPbaxKWigwWKj2ehWbH93SvzZsAhOwXR2y4IfGhWSM/gd8LZ5Mp1P9648yGrLwlPmiQBlots9+mB+L4v16a8YuhQkH7T6hkoJKgR3eok=
file:
- dist/date_fns.js
- dist/date_fns.js.map
- dist/date_fns.min.js
- dist/date_fns.min.js.map
on:
tags: true
- provider: script
skip_cleanup: true
script: yarn run deploy-homepage
on:
tags: true
after_deploy:
- yarn run release-tweet
cache:
yarn: true
directories:
- node_modules
addons:
sauce_connect: true