-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
62 lines (56 loc) · 5.25 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
# SmashPic Travis CI control file
# Node version is read from .nvmrc
---
language: node_js
cache:
yarn: true
directories:
- node_modules
env:
global:
- CI_COMMIT=$TRAVIS_COMMIT
- CI_TAG=$TRAVIS_TAG
# CANARY_SENTRY_DSN
- secure: ViFZt1qoD4MECpOUxYrxqW20FvtkDUgZZ1HG157brV6Q+MYrMYmuy614QNOKF7I6c4a97qDwQm9OVgvWaWM1mrgsLb9UpZhjfpnxceR7GCOGYhLIyLttp4E07dyCl2qDmZqO9XZlNa7eV9OH4iGgW+wyUqM5g/9kI5q0l+Al/Lcl2+GA1YvnZfxkTR6hjmUeHmBWZG6M/0aZyDO2k4GUzcZH7KUHEviUqEY8lPSS1+dA1/VZoij9VEPu+5IJF30D2ZJZNFqek96MD76kbzcpz8O2ynEPmi+Z8OScIYlWiNiUDfAwhgC0DdyGdDBcHFLYzsXYgHpNx0XA6x+lKaC/Sp5KBlqHD3zCw9YGmRGVXQogmLkbzIL7ZHb2uFi0diseC2IKFNTCj3WSgkPp1K18dx5ZC4zoD8cuinTpcwBXzmSnI1lu0oGkhxUsC6b1gE0QH9ult0TOnmsRahIlKPE+Cjb2YhcBrcfZXZ9kj7fjSv/m5JkWXZivFq2NheZcuUjc/CczX71Z3N8nYWuFO/lJcwLegTHwPKj0Lk1xrISb5iCTj224886hfMYG63rdtURghq/+5PAVxos2IO2+PLXMSpmTsW3uMWz8AM1+QaX/u0UzeGk/3ce1ezJ4QvU6vcOsmDMFxrAMUlr9do81ry12POpKYxcR4qcLGIzUSHtYwco=
# CANARY_ANALYTICS_ID
- secure: zh6Iw0uY/7SR+gSvM9+vcqC3jjZ9a0hq3x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ZCr8L89mVFpRdLobTVc2bLq78Huk2/tTOJxJkKkZFpCv80BWiEOvUKVKCnzwvoExiYpRUYMZBPgjGvQrHjuZz9w4zzppSyK4avhn9fjztySS8goEZuxl9KvCEiDdykdr/ba9UFqVPZomcgV/nT2BzqfxZ6MOSuHUIQIWdAKQHkg+S2SosryOTW96pE86lmNezoDVs6mEYlUSvWTWvBW05Rz/Q4UvvlWQvmrhV2pIrOzEPEpqXLbeJVSgqeC8OrCZHrd8DJMLldc3UFWbk=
# LIVE_ANALYTICS_ID
- secure: h5VveIOz/cg9FeU0PtoxtpdsXtBIJlJMqlEGrBAZyNfko5MhVHiKQ+Vdw7Kv0a34njK5Q9qzsDZTgeV18nOj0fLsXZcZfVZiBEy7zuolDNpLPv/OyeK8JpOOZDA8p9bwT/to3bz0/glFDvOTaVQdclSDub7Jk6l1o2foFOnWMoDt5AdFCL+PYXkoEZ566CsaUYdTqodCCavf1xucDGWY9Cv/vxXP6zI6t83CP9RY9htdOt0V8j5t7vA5Ok5OyHNoQ/LJBnzexljf636fLq6frpxIaRnGcCdhwuohXDEdfSbyJVBkDX34RnHodLe5Bfof7vxh9sEBaXrSR0UGofFJ7nSCQ0HTuu3Scegtljx8idUAIfdFMdN2TShvl/8dfhcjg6ua8I/LZniQSQuhFu+p21448uefFoC66y9CMW/TMbaf198Puin6c/vFpwBRPVS83/zsreaut4COKmVdPVtPC2E/DELr5+IwQD5u68pzeUjmgakb9xnYrH7ydtmICl9q2vVwW6gVgtVa5JXk4vvOYniPvx33fz5OAxDzl1dcRdx58J1moX9xiu6fPkp6vxHVJVTYxllvQusuOmqaQyPl6yEeKZ3zznJ/ZzYsgxIJzooEoqR2KFNb8bPeaMzMWjmF0F/8RvHYVudPOyHldIMN7+h4sH5JgyIZQ2Gjr5/Dgn4=
branches:
only:
- master
- /^v\d+\.\d+(\.\d+)?(-\S*)?$/ # Tags are branches for Travis
before_install:
- |
if [[ -z "$TRAVIS_TAG" ]]; then
for prefixed_envvar in ${!LIVE_*}; do
eval export ${prefixed_envvar#LIVE_}="${!prefixed_envvar}"
done
elif [[ "$TRAVIS_BRANCH" = "master" ]]; then
for prefixed_envvar in ${!LIVE_*}; do
eval export ${prefixed_envvar#LIVE_}="${!prefixed_envvar}"
done
fi
script:
- npm run lint
- NODE_ENV=test npm test
- NODE_ENV=production npm run build
deploy:
- provider: firebase
skip_cleanup: true
token:
secure: "ZkLAnV4hzIMJcjBIrs+1ZDz4cWApJmM8CuL1N26hZGFkIMATV6ioiYJ98D1Q27srZUyw923uCjKUwIdAL0b33jyXQ13ui3U12oGOm9JJzPAH595okAxJL8wK85w+6oRthwzNxTwWztddjCIGunWx8sbXLyPwwnOIgcmrJRymcVVHL4R9Kf7DRQLc6Xm6elpgi0mcJ/QMqn09Gy+VVgH91EWHAReMXwehrlKKhM5aGc7Rn5ORPX+bOunKMe9XqKKb0zMtGWBnkdf5v/+Jl8YdaBxuKPQ3h8II61Y6E78v1M3SfgLqYLFSFBKeg+AbDlxvcwq3sGcokqC8KQ6drR0/s/SR5J9iUDmUz0dOs9QJFVO5ujchtSbRmMxprYpvXKz5IJPeZXA8OpyT+qtPe9rhHAPJWePGBIpekyzCWhXb89BO9jkZsqUCiK/wofvtTMC7iY2dTfZ5J5HBkA8h6OoxkIJ0EVz5GXDp2gL1WJX9Yi225Q6 my79Pb9yeC1DsRccAjj3iDtsIr1zFdYVo4sz/hCFGbMhh4ruO/wdK44pQ0ZrEOnw/acdJLGeYeBQBA3q8qHczU836WC/eVFvpwmDgJKLwuqZGW40MIM69tnGtFtQ7xaAZSYtj+PGqEHNQeo47KsqV3FN4nGcMqtS+euIzjcowMMEXPHDD8b+eTNSjb9w="
project: 'smashpic-canary'
message: $TRAVIS_COMMIT
on:
branch: master
- provider: firebase
skip_cleanup: true
token:
secure: "ZkLAnV4hzIMJcjBIrs+1ZDz4cWApJmM8CuL1N26hZGFkIMATV6ioiYJ98D1Q27srZUyw923uCjKUwIdAL0b33jyXQ13ui3U12oGOm9JJzPAH595okAxJL8wK85w+6oRthwzNxTwWztddjCIGunWx8sbXLyPwwnOIgcmrJRymcVVHL4R9Kf7DRQLc6Xm6elpgi0mcJ/QMqn09Gy+VVgH91EWHAReMXwehrlKKhM5aGc7Rn5ORPX+bOunKMe9XqKKb0zMtGWBnkdf5v/+Jl8YdaBxuKPQ3h8II61Y6E78v1M3SfgLqYLFSFBKeg+AbDlxvcwq3sGcokqC8KQ6drR0/s/SR5J9iUDmUz0dOs9QJFVO5ujchtSbRmMxprYpvXKz5IJPeZXA8OpyT+qtPe9rhHAPJWePGBIpekyzCWhXb89BO9jkZsqUCiK/wofvtTMC7iY2dTfZ5J5HBkA8h6OoxkIJ0EVz5GXDp2gL1WJX9Yi225Q6 my79Pb9yeC1DsRccAjj3iDtsIr1zFdYVo4sz/hCFGbMhh4ruO/wdK44pQ0ZrEOnw/acdJLGeYeBQBA3q8qHczU836WC/eVFvpwmDgJKLwuqZGW40MIM69tnGtFtQ7xaAZSYtj+PGqEHNQeo47KsqV3FN4nGcMqtS+euIzjcowMMEXPHDD8b+eTNSjb9w="
project: 'smashpic-live'
message: $TRAVIS_TAG
on:
tags: true