-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
44 lines (44 loc) · 1.86 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
language: node_js
node_js:
- node
addons:
chrome: stable
cache:
npm: true
yarn: true
directories:
- firestore/node_modules
- frontend/node_modules
before_install:
- openssl aes-256-cbc -K $encrypted_155663baf9b1_key -iv $encrypted_155663baf9b1_iv
-in firebase-config.json.enc -out frontend/src/firebase-config.json -d
jobs:
include:
- stage: Tests
name: firestore rules
script:
- npm i -g firebase firebase-tools
- firebase setup:emulators:firestore
- npm install --prefix ./firestore/
- npm run firestore-test --prefix ./firestore/
- script:
- yarn --cwd "./frontend" install
- npm run test --prefix ./frontend/ -- --passWithNoTests
name: frontend
- stage: deploy
script:
- npm install --prefix ./functions/
- npm run build --prefix ./functions/
- yarn --cwd "./frontend" install
- yarn --cwd "./frontend" build
if: branch = master OR branch = develop
deploy:
skip_cleanup: true
provider: firebase
token:
secure: k1LqXcu9Yc+w2cyA0iaJqBeJ7B6SNgHWpXC6//OBn45prhnFuWCIrkQj3xngWUBgODkSPQAU6BHC0bmFpD9M/gvVLZ9+DlS0mP8KHbfTS7KWYP28VJqIakzUVg0M9/n9npyPTgLNanuw1q3DihEnHh90y6nmNhSvOewEC99hqhG86qXieU1/OIFXV5xbIaUXhyAVxBd9SFRrGiL/iPdOZ2m53UmcgbrvEIHpb9wTYZUg/pcpGrQyKs70vepv7HX1GImI1nE1t6DJx0PHkgQARYnOWp/Bfvel8Rdi69EsLOuRk70eW5sVm4blA/vPv/0h5ls2FZfmh0/f52uCriahgWqCQNI1vhStOQLzUB6tTzB1sgAFoFa+S3RjCwctjBBgp3vt7xWuxLaaNETXcvsMUDhMPqHz/ZIG5tU8Xg4GyQkIexbAuEF31Sc1V642tCv08RO4eFFPWfO2jc0pb0Pg46KkyfoRS0NukY/gho03B00B04lnb2BwGO4nAMMW7kF0NgE+CIysBAa06KOoZHveAdfD2BiiOSkFBZc0wwqSdx+Fy2keXr7kCoLXQahurtePR/NwqbBQsL2XXaCCzWq4HRAkNIZtcxPh92ijKNDwpHtj0Ah16uehc0PaUdVh3EywmE1Wmf+/uaC1gCXOBBziQnE0MV5AF1TDm36EFD+eVk4=
on:
branch: master
after_deploy:
- npm install -g @lhci/[email protected]
- lhci autorun