ci: use real backend instead of fake backend for web reviews

Closes #75
This commit is contained in:
Jovan Krunić
2020-11-25 17:22:17 +01:00
parent 6647750a6c
commit b0cd37732e
6 changed files with 16 additions and 14 deletions

View File

@@ -31,7 +31,7 @@ setup:
build:
stage: build
script:
- npm run build:web
- npm run build
artifacts:
paths:
- www
@@ -137,6 +137,7 @@ staging:
production_demo:
stage: deploy
script:
- npm run build:prod
- ./node_modules/.bin/surge -p ./www -d https://$CI_PROJECT_PATH_SLUG.surge.sh/
environment:
name: production

View File

@@ -76,11 +76,12 @@
],
"progress": false
},
"web": {
"fileReplacements": [{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.web.ts"
}
"fake": {
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.fake.ts"
}
],
"optimization": true,
"outputHashing": "all",
@@ -116,10 +117,10 @@
},
"ci": {
"progress": false,
"browserTarget": "app:build:web"
"browserTarget": "app:build"
},
"web": {
"browserTarget": "app:build:web"
"fake": {
"browserTarget": "app:build:fake"
}
}
},

View File

@@ -13,7 +13,7 @@
"scripts": {
"build": "ng build",
"build:prod": "ng build --prod",
"build:web": "ng build --configuration=web",
"build:fake": "ng build --configuration=fake",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0 && git add CHANGELOG.md && git commit -m 'docs: update changelog'",
"check-configuration": "openstapps-configuration",
"e2e": "ng e2e --no-webdriver-update",
@@ -30,7 +30,7 @@
"preversion": "npm run prepublishOnly",
"push": "git push && git push origin \"v$npm_package_version\"",
"start": "ng serve",
"start:web": "ng serve --configuration=web",
"start:fake": "ng serve --configuration=fake",
"test": "ng test",
"tslint": "tslint -p tsconfig.json -c tslint.json 'src/**/*.ts'"
},

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018, 2019 StApps
* Copyright (C) 2018-2020 StApps
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the Free
* Software Foundation, version 3.

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018, 2019 StApps
* Copyright (C) 2018-2020 StApps
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the Free
* Software Foundation, version 3.

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018, 2019 StApps
* Copyright (C) 2018-2020 StApps
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the Free
* Software Foundation, version 3.