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

View File

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

View File

@@ -13,7 +13,7 @@
"scripts": { "scripts": {
"build": "ng build", "build": "ng build",
"build:prod": "ng build --prod", "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'", "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", "check-configuration": "openstapps-configuration",
"e2e": "ng e2e --no-webdriver-update", "e2e": "ng e2e --no-webdriver-update",
@@ -30,7 +30,7 @@
"preversion": "npm run prepublishOnly", "preversion": "npm run prepublishOnly",
"push": "git push && git push origin \"v$npm_package_version\"", "push": "git push && git push origin \"v$npm_package_version\"",
"start": "ng serve", "start": "ng serve",
"start:web": "ng serve --configuration=web", "start:fake": "ng serve --configuration=fake",
"test": "ng test", "test": "ng test",
"tslint": "tslint -p tsconfig.json -c tslint.json 'src/**/*.ts'" "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 * 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 * under the terms of the GNU General Public License as published by the Free
* Software Foundation, version 3. * 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 * 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 * under the terms of the GNU General Public License as published by the Free
* Software Foundation, version 3. * 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 * 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 * under the terms of the GNU General Public License as published by the Free
* Software Foundation, version 3. * Software Foundation, version 3.