forked from coveo/search-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
108 lines (107 loc) · 5.73 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
sudo: required
language: node_js
addons:
chrome: stable
notifications:
email:
on_success: change
on_failure: always
slack:
rooms:
- secure: kEnVWejWIDAo6bWMovYAd/oHXJPOtfAdUg/I0tQu8a4BWBo6SaO05fLs/7DjRkXS2vAA++0aim96lQl0TmMFqpooYCf0XTO/797FPVQx0yA3W5XI20vwWUGxW4jKy56WQBTvxPzdSsSlOMcoVVYU8ID86D7coiAuzdfw8olaqmlN3gzcSwvrWbJsa3tAzQFTC0vvWgFyURxB79amYkl5y+KDQW4i7iSDTicXHj/5Tm6RxX3hUUYZFe/p/XenU3/KF3046EL3aYv98QpA3S8FXxMR5lrbLqXHCF8zMljzR2fVmlPSsrLgsXbZY9bvk64wgD+3borN42kab0kQxH6fPoCi7bKtQOoOdq1Z7b+YGRIUzEazl0goM7sQTq9aa3rR2+gzyYe4aLuCo3A9vOFIUGqEEiwmy2SCN7wa/yiWjreaaziRuZPaVo14cGfjtQ1z8S2okYFVmJM8EHzestpsnwTSDApX1w5cBlpYfFToGPYBR6B/Lhn1h6miUd+xNL+KJQpOXPOJVeiNacFzLG1nCq8wGwQ/terW5sODdkPLuKUV6UF6ZR10WED2WlqmdrtnDg5+t+3WMxX5oQGdwq+Zv5rlJVboa0WgDLhsEfNrycK9ncWu2tGE2MUsnEiwqqbqfh/O7E+xBbGAqk/rXLfCcWrSz+6o3K6/Xaq/NA6gAhQ=
on_success: never
on_failure: always
on_pull_requests: false
node_js:
- 12.18.3
cache:
yarn: true
directories:
- node_modules
before_install:
- npm install -g [email protected]
- sudo apt-get install libgconf2-4
script:
- source read.version.sh
- echo $PACKAGE_JSON_VERSION
- yarn run injectTag
- yarn run build
- if [ "x$TRAVIS_TAG" != "x" ]; then yarn run minimize ; fi
- yarn run unitTests
- if [ "x$TRAVIS_TAG" != "x" ]; then yarn run accessibilityTests ; fi
- set +e
- yarn run uploadCoverage
- set -e
- yarn run validateTypeDefinitions
after_success:
- if [ "x$TRAVIS_TAG" != "x" ]; then bash ./deploy.doc.sh ; fi
- yarn run docsitemap
- yarn run zipForGitReleases
env:
global:
- COMMIT_AUTHOR_EMAIL: [email protected]
deploy:
- provider: npm
email: [email protected]
skip_cleanup: true
api_key:
secure: g6Uxgz8nKnR7CVu58JSv4wi7hhRUzV4C2znda2Yq/dTxjjKTBJk6HVnXOlpcN2vVXD7Tc/HGnjLVABEzpfeEfiZXc1tEzalS+EfHXcTjGOzr84IiG4ZRlurayI5K2MIV6s/sLN/up2vOGhE0e9Clx+ot7mlJXgiMZ0+IREcD2IWhC+VfpVkt8Owhf8J33+wRvYYKdHpkaRXbcJS6563nDIOHSzLEXd0EFXQTODdBoRTdPfTnl3kgHmFw0so6gvONbG70dV4TrPdiqr58iJjCta9Cz2Nae+AMJPjzS2zTtS9DjiRrQxls7IHoAvKWWTbRzpbdgpMpvApjRoqdHiBEQk1Wv49zfeIBk4at9UQwH8v8vU139PaZga90/UAOdK/rRPxO0ptlYqE9MTnN4Uze1i7eFiiqyEo8pTDDFxv03672tYFIiBxHoyMuAHxcEfkgGbJYRazkAurjzqGKv7Kj2BCFCDQgut/akgsKZZiJygmQnQoDFRVkLhv2worm03WgTh7cE5efgVTu/I0jJTHmo3fAVB47lpdzxSmXYLKsFllukUN/7/P5HiIUKeb9Lr0tp7N2DbxKkLHyGxKv1YXyffPebmiV+D5xeDBRvm/AB9qR4rJc9dP5wXOqnkhayn9chJvCWrJ46unX3yotuQcd7iQENhHhThhclLwq8E9odVY=
on:
tags: true
repo: coveo/search-ui
all_branches: true
condition: "! $TRAVIS_TAG =~ .*beta.*"
- provider: script
script: node deploy.beta.js
skip_cleanup: true
on:
tags: true
repo: coveo/search-ui
all_branches: true
condition: "$TRAVIS_TAG =~ .*beta.*"
- provider: releases
api_key:
secure: jKNS2mWnLUP5kQkjApoIFxQVXAr8ed3nsTIltY6gOvf1/2kbkS0WbzR7Km9lewFA2ZEBSFAu/ek+ewXjEx8FVQAe3CeCS1sS5RVqU/2YvFGBPYzzVw1l3FOJkQsvruRc7UzkznXbLvk+7LerHDpsy3p6ut8stMokztiq8QyWN+GHhrB/QgBQV/swPx40QknAIXndtLEPQfttukLowAdH9ml2BgrgE0/3iitmja/8eIQxVT6dlFyXYV+iU44kPyS595wM7eakUGXNFB2W9sUZ9IY/8lUqPz85G3FkKyiPv3SZJRs158/32+vvdXAtT/wtHjP5PqESPv/pL31M9IpQYYIdTSPwUZtOdRZ6JrxV/xusQ2Nm5p3qNrKgtkEZ921BGHJEMK9xs0yAhMuT39JLhoZE30g8SXokWQWi6WzrRELODYubVMaXTmfgv2ZZN4T3B8xNSabmE3Jm7Gj5Lb9wdR+pbWxPlB475i4H7grOHAN9xRIWokAIIN9RuTPRx1XuxhLUI9BH/GrJXNZbv1800rqF15W9Yuw1RqMfrSWq2snyDalXW3gLHYeAFAP1hfD2mU1zySjP/HQ6VkCwmgCjlAg4W5xK4NlXX0C/EIkoLKhSefxLdhquMZQTION+v0fOvl7Kdz17vt231dEIjNZxsBlLL+JZoxOZA5tVRDMNbko=
file_glob: true
file:
- search-ui.zip
skip_cleanup: true
on:
tags: true
repo: coveo/search-ui
all_branches: true
- provider: s3
access_key_id: AKIAYKDJLZIT462WODCI
secret_access_key:
secure: sT8isIiaAIg/Ic7x8cCD3anwCEHAyzG/IWkngmkf5c128NEwUIUdmsQJ1hi4Bw84zk1OOb3id+yXjeaTuKDgIkxe/jk3e2xZ7xElfLNTOln6QLkgsYpKFtGHiKjROOHOb5+Es6L1mxpHWbXH9ebmEhRduUw/BeHWW2MfZmfb434DgvatViRm8DOeROeqlYnbCda5ZELuT5SdwEs/CbExaiSL0WKVoTvcxbe+At4uVnTuc6SYyOvRoblx/q6Ra6mdRipluMs7Go93eu/Oqo7cZ2akrNSi/WBXGqL/wXxe2pYsziSABWjQaqWXD/jKte1ZBx7OXssn88DUKat/RrL7Ak30WHzgY/goiNV+EPT/wtNYWHP3suAzzGqNNMhsPx0lSI7vSUga72J3hV1TOsX9ORosiRm1c2fnmNB9vJdH7yAX7lWpqH2XuOrldVvvTGazSJYx93eBukDViFCZ6egeb+gMT8VQ38uitwd9BZaMhycoujZgSjhx7JnbHUoUdXkdT3XBNV7fINTozWCNJW81iJN+JuLZzneJ/CbjmjkfGcVoFFPCD9rGSj8DbgvWpt8rkwI4ZfHTNOgO9iWgSklpk9r2wgM7Z87V2Zpu8UX/QCFxy8IREtJUo6X9YG9nBoy21wUa9zia2SWpideur9cXb6U0+q84onHVlA0Ehp/1OYs=
bucket: coveo-nprod-binaries
local-dir: bin
upload-dir: proda/StaticCDN/searchui/v$PACKAGE_JSON_VERSION
acl: public_read
skip_cleanup: true
on:
tags: true
repo: coveo/search-ui
all_branches: true
condition: "! $TRAVIS_TAG =~ .*beta.*"
- provider: s3
access_key_id: AKIAYKDJLZIT462WODCI
secret_access_key:
secure: sT8isIiaAIg/Ic7x8cCD3anwCEHAyzG/IWkngmkf5c128NEwUIUdmsQJ1hi4Bw84zk1OOb3id+yXjeaTuKDgIkxe/jk3e2xZ7xElfLNTOln6QLkgsYpKFtGHiKjROOHOb5+Es6L1mxpHWbXH9ebmEhRduUw/BeHWW2MfZmfb434DgvatViRm8DOeROeqlYnbCda5ZELuT5SdwEs/CbExaiSL0WKVoTvcxbe+At4uVnTuc6SYyOvRoblx/q6Ra6mdRipluMs7Go93eu/Oqo7cZ2akrNSi/WBXGqL/wXxe2pYsziSABWjQaqWXD/jKte1ZBx7OXssn88DUKat/RrL7Ak30WHzgY/goiNV+EPT/wtNYWHP3suAzzGqNNMhsPx0lSI7vSUga72J3hV1TOsX9ORosiRm1c2fnmNB9vJdH7yAX7lWpqH2XuOrldVvvTGazSJYx93eBukDViFCZ6egeb+gMT8VQ38uitwd9BZaMhycoujZgSjhx7JnbHUoUdXkdT3XBNV7fINTozWCNJW81iJN+JuLZzneJ/CbjmjkfGcVoFFPCD9rGSj8DbgvWpt8rkwI4ZfHTNOgO9iWgSklpk9r2wgM7Z87V2Zpu8UX/QCFxy8IREtJUo6X9YG9nBoy21wUa9zia2SWpideur9cXb6U0+q84onHVlA0Ehp/1OYs=
bucket: coveo-nprod-binaries
local-dir: bin
upload-dir: proda/StaticCDN/searchui/v$PACKAGE_JSON_VERSION/$PACKAGE_PATCH_VERSION
acl: public_read
skip_cleanup: true
on:
tags: true
repo: coveo/search-ui
all_branches: true
condition: "! $TRAVIS_TAG =~ .*beta.*"
after_deploy:
- node invalidate.cloudfront.js
branches:
only:
- master
- "/^.*release.*$/"
- "/2\\.[0-9]+\\.[0-9]+/"