Skip to content

Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia

:green_heart: Fixing CI Build

Liyas Thomas54e4dbc4ac65
diff --git a/.travis.yml b/.travis.yml
index 0223e03ab..92275152d 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -13,38 +13,40 @@
language: node_js
node_js:
- - "12"
+ - "12"
+
+os: linux
addons:
- apt:
- packages:
- - libgconf-2-4 # cypress binary dependency
+ apt:
+ packages:
+ - libgconf-2-4 # cypress binary dependency
env:
- - DEPLOY_ENV=POSTWOMAN_IO
+ - DEPLOY_ENV=POSTWOMAN_IO
cache:
- npm: true
- directories:
- - "node_modules"
- - ~/.cache
+ npm: true
+ directories:
+ - "node_modules"
+ - ~/.cache
branches:
- only:
- - "master"
+ only:
+ - "master"
install:
- - "npm install firebase-tools"
- - "npm install"
+ - "npm install firebase-tools"
+ - "npm install"
before_script:
- - "npm run test"
+ - "npm run test"
script:
- - "cd functions"
- - "npm install"
- - "cd .."
- - "npm run generate"
+ - "cd functions"
+ - "npm install"
+ - "cd .."
+ - "npm run generate"
notifications:
webhooks: https://www.travisbuddy.com
diff --git a/build.js b/build.js
index be7f3f4c3..c19eb2987 100644
--- a/build.js
+++ b/build.js
@@ -53,7 +53,7 @@ try {
// Write version data into a file
fs.writeFileSync(
- PW_BUILD_DATA_DIR + "/version.json",
+ `${PW_BUILD_DATA_DIR}/version.json`,
JSON.stringify(version)
);
})();