💚 Fixing CI Build

This commit is contained in:
Liyas Thomas
2020-01-25 07:00:07 +05:30
parent bbaa48c1ec
commit 54e4dbc4ac
2 changed files with 21 additions and 19 deletions

View File

@@ -13,38 +13,40 @@
language: node_js language: node_js
node_js: node_js:
- "12" - "12"
os: linux
addons: addons:
apt: apt:
packages: packages:
- libgconf-2-4 # cypress binary dependency - libgconf-2-4 # cypress binary dependency
env: env:
- DEPLOY_ENV=POSTWOMAN_IO - DEPLOY_ENV=POSTWOMAN_IO
cache: cache:
npm: true npm: true
directories: directories:
- "node_modules" - "node_modules"
- ~/.cache - ~/.cache
branches: branches:
only: only:
- "master" - "master"
install: install:
- "npm install firebase-tools" - "npm install firebase-tools"
- "npm install" - "npm install"
before_script: before_script:
- "npm run test" - "npm run test"
script: script:
- "cd functions" - "cd functions"
- "npm install" - "npm install"
- "cd .." - "cd .."
- "npm run generate" - "npm run generate"
notifications: notifications:
webhooks: https://www.travisbuddy.com webhooks: https://www.travisbuddy.com

View File

@@ -53,7 +53,7 @@ try {
// Write version data into a file // Write version data into a file
fs.writeFileSync( fs.writeFileSync(
PW_BUILD_DATA_DIR + "/version.json", `${PW_BUILD_DATA_DIR}/version.json`,
JSON.stringify(version) JSON.stringify(version)
); );
})(); })();