forked from shlee322/delivery-tracker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
55 lines (55 loc) · 1.96 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
language: node_js
node_js:
- "10"
jobs:
include:
- stage: build apiserver
before_install:
- cd packages/apiserver
install:
- yarn install
script:
- NODE_TLS_REJECT_UNAUTHORIZED=0 yarn run test
after_script:
- cd ../..
- stage: build client
before_install:
- cd packages/client
install:
- yarn install
script:
- yarn run build
after_script:
- cd ../..
- stage: deploy server
if: branch = master AND type = push
before_install:
- cd packages/apiserver
- openssl aes-256-cbc -K $encrypted_ab7e70f73e9d_key -iv $encrypted_ab7e70f73e9d_iv -in gae-deploy-key.json.enc -out gae-deploy-key.json -d
script: skip
deploy:
provider: gae
keyfile: gae-deploy-key.json
project: delivery-tracker-service
after_script:
- cd ../..
- stage: deploy client
if: branch = master AND type = push
env:
- secure: dxUXq6e049jZ+cDBLz/+agklQ2V2CEAUHYbgD6tOpe1tjI/7uerRAuTHzv1M9k10QKSA8Zm2HPp3+G5DhmY5jM6RBhghdDcTBPYTTr/bmWI07gNSaHJ3P3TI1WHX18g6/xAqkoG8ARsNEdktlgSorpC1OQhEtUiheM7VSIPgvgydtuU+cSgcKTcg1EW5iVHpSXowo8r+jlCPRNvdPWgN1DHFfQgTst6Tf/rEkkntfzGiLGzwroMgq1VvZLHAUiJm5KsvEPbJZRBft0t33wYSviHBy+/gq+y13FGwWUTJKpOuYW73ONMu+trR/W22Cpkl9V64+LFYV6M1bVaNwmqSqTPF8+4205G8Z26dM90N07TG7qh3Yzp/MAYINoGzw4IpGwwEYz18UhdoMEJNd6xYvTnwuqA4fWhpvclNLeMt5SsLumxEc8w/2i/paOBLhzzGyXPPD+iQo/ARefgW4h8PYmsYCwzA5hNP9Y+wSBIjzERCgD1Kz94kEeWwcRLnzNZDNGdzsLR07gvGrdqJz2+zfk8o56CnY9QheDDVYHr2OmTbiImjcLUPmeVlYH5d/AXjamJ7R/mRDRF0yumj3VYZSKtePoGXF6otkhjB6l4OV/t2RWApoDJJ0KVwvPRWV919ASSDMCQZ/suDefT9hs6eWlEQM0mcx78nuKdqAI2tyDE=
before_install:
- cd packages/client
install:
- yarn install
script:
- NODE_ENV=production yarn run build
- echo -n 'tracker.delivery' > dist/CNAME
deploy:
provider: pages
skip_cleanup: true
github_token: "$GITHUB_TOKEN"
keep_history: true
local_dir: packages/client/dist
target_branch: gh-pages
after_script:
- cd ..