-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.yml
31 lines (30 loc) · 1.11 KB
/
config.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
version: 2.1
orbs:
node: circleci/node@1.1.6
jobs:
build-and-test:
executor:
name: node/default
steps:
- checkout
- node/install:
node-version: 12.1.0
- node/with-cache:
steps:
- run: npm install
- run: npm rebuild node-sass
- run: npm install --save-dev firebase-tools
- run: cp src/config/default/ownplate-dev.js src/config/project.js
- run: cp configs/.firebaserc ./
- run: STRIPE_CLIENT_ID=$STRIPE_CLIENT_ID STRIPE_API_KEY=$STRIPE_API_KEY GAPIKey=$GAPIKey npm run build
- run: ./node_modules/.bin/firebase deploy --token=$FIREBASE_TOKEN --project=staging --only hosting
- run: ./node_modules/.bin/firebase deploy --token=$FIREBASE_TOKEN --project=staging --only firestore:rules
- run: cd functions && npm install && ../node_modules/.bin/firebase deploy --token=$FIREBASE_TOKEN --project=staging --only functions
workflows:
version: 2.1
build-and-test:
jobs:
- build-and-test:
filters:
branches:
only: master