Use configuration instead of env switch for building

This commit is contained in:
ziajka 2018-07-06 13:16:45 +02:00
parent 4700a153cc
commit 610b7384c5
2 changed files with 10 additions and 5 deletions

View File

@ -3,7 +3,7 @@ version: 2
jobs:
build:
macos:
xcode: "9.3.0"
xcode: "9.4.0"
steps:
- checkout
@ -14,6 +14,11 @@ jobs:
sudo systemsetup -settimezone Europe/Warsaw
echo "Today is $(date +"%Y-%m-%d %T")"
- run:
name: Installed python version
command: |
python -V
# - restore_cache:
# name: Restore Yarn Package Cache
# keys:
@ -24,7 +29,7 @@ jobs:
name: Install project
# there is an issue with yarn and cache during executed on CI; for now we just run it twice, second should
# be successful. Check it later if updates fixed the issue
# increased timeout is for material-design-icons
command: |
yarn install --network-timeout 1000000

View File

@ -10,10 +10,10 @@
"scripts": {
"ng": "ng",
"start": "ng serve",
"startforelectron": "ng serve -e electronDev",
"startforelectron": "ng serve --configuration=electronDev",
"build": "ng build",
"buildforelectron": "ng build -e electronProd",
"buildforgithub": "ng build -e githubProd",
"buildforelectron": "ng build --configuration=electronProd",
"buildforgithub": "ng build --configuration=githubProd",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e",