Added continues integration
This commit is contained in:
parent
fc0e2cf4f9
commit
61eb82c6db
67
.circleci/config.yml
Normal file
67
.circleci/config.yml
Normal file
@ -0,0 +1,67 @@
|
|||||||
|
version: 2
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
docker:
|
||||||
|
- image: circleci/node:10.9-browsers
|
||||||
|
|
||||||
|
working_directory: ~/repo
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- checkout
|
||||||
|
|
||||||
|
- restore_cache:
|
||||||
|
keys:
|
||||||
|
- v1-dependencies-{{ checksum "package.json" }}
|
||||||
|
- v1-dependencies-
|
||||||
|
|
||||||
|
- run:
|
||||||
|
name: Install Dependancies
|
||||||
|
command: yarn
|
||||||
|
|
||||||
|
- save_cache:
|
||||||
|
key: v1-dependencies-{{ checksum "package.json" }}
|
||||||
|
paths:
|
||||||
|
- node_modules
|
||||||
|
|
||||||
|
- run:
|
||||||
|
name: Build
|
||||||
|
command: yarn build --prod
|
||||||
|
|
||||||
|
- persist_to_workspace:
|
||||||
|
root: ~/repo
|
||||||
|
paths:
|
||||||
|
- node_modules
|
||||||
|
- dist/MapAlliance
|
||||||
|
|
||||||
|
- store_artifacts:
|
||||||
|
path: dist/MapAlliance
|
||||||
|
|
||||||
|
deploy:
|
||||||
|
docker:
|
||||||
|
- image: circleci/node:10.9-browsers
|
||||||
|
|
||||||
|
working_directory: ~/repo
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- checkout
|
||||||
|
|
||||||
|
- attach_workspace:
|
||||||
|
at: ./
|
||||||
|
|
||||||
|
- run:
|
||||||
|
name: Deploy
|
||||||
|
command: yarn deploy
|
||||||
|
|
||||||
|
workflows:
|
||||||
|
version: 2
|
||||||
|
|
||||||
|
build_and_deply:
|
||||||
|
jobs:
|
||||||
|
- build
|
||||||
|
- deploy:
|
||||||
|
requires:
|
||||||
|
- build
|
||||||
|
filters:
|
||||||
|
branches:
|
||||||
|
only: master
|
2401
package-lock.json
generated
2401
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -7,7 +7,8 @@
|
|||||||
"build": "ng build",
|
"build": "ng build",
|
||||||
"test": "ng test",
|
"test": "ng test",
|
||||||
"lint": "ng lint",
|
"lint": "ng lint",
|
||||||
"e2e": "ng e2e"
|
"e2e": "ng e2e",
|
||||||
|
"deploy": "firebase deploy --only hosting --token \"${FIREBASE_TOKEN}\""
|
||||||
},
|
},
|
||||||
"private": true,
|
"private": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@ -36,6 +37,7 @@
|
|||||||
"@angular/compiler-cli": "~8.0.1",
|
"@angular/compiler-cli": "~8.0.1",
|
||||||
"@angular/language-service": "~8.0.1",
|
"@angular/language-service": "~8.0.1",
|
||||||
"@types/node": "~8.9.4",
|
"@types/node": "~8.9.4",
|
||||||
|
"firebase-tools": "^7.0.2",
|
||||||
"ts-node": "~7.0.0",
|
"ts-node": "~7.0.0",
|
||||||
"tslint": "~5.15.0",
|
"tslint": "~5.15.0",
|
||||||
"typescript": "~3.4.3"
|
"typescript": "~3.4.3"
|
||||||
|
@ -1,3 +1,12 @@
|
|||||||
export const environment = {
|
export const environment = {
|
||||||
|
firebaseConfig: {
|
||||||
|
apiKey: "AIzaSyDFtvCY6nH_HUoTBNf_5b-E8nRweSLYtxE",
|
||||||
|
authDomain: "mapalliance-ab38a.firebaseapp.com",
|
||||||
|
databaseURL: "https://mapalliance-ab38a.firebaseio.com",
|
||||||
|
projectId: "mapalliance-ab38a",
|
||||||
|
storageBucket: "",
|
||||||
|
messagingSenderId: "443222036375",
|
||||||
|
appId: "1:443222036375:web:2e2906e3ca49aa63"
|
||||||
|
},
|
||||||
production: true
|
production: true
|
||||||
};
|
};
|
||||||
|
@ -3,6 +3,15 @@
|
|||||||
// The list of file replacements can be found in `angular.json`.
|
// The list of file replacements can be found in `angular.json`.
|
||||||
|
|
||||||
export const environment = {
|
export const environment = {
|
||||||
|
firebaseConfig: {
|
||||||
|
apiKey: "AIzaSyDFtvCY6nH_HUoTBNf_5b-E8nRweSLYtxE",
|
||||||
|
authDomain: "mapalliance-ab38a.firebaseapp.com",
|
||||||
|
databaseURL: "https://mapalliance-ab38a.firebaseio.com",
|
||||||
|
projectId: "mapalliance-ab38a",
|
||||||
|
storageBucket: "",
|
||||||
|
messagingSenderId: "443222036375",
|
||||||
|
appId: "1:443222036375:web:2e2906e3ca49aa63"
|
||||||
|
},
|
||||||
production: false
|
production: false
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user