Files
cypress/scripts/deploy.js
Gleb Bahmutov bba4332e8d Issue 224: building, zipping and uploading binary (#234)
* server: remove obsolete desktop types

* server: ensure project path generated by tests is ignored

* driver: remove unused gulp deps

* deploy: refactored to simplify uploading binary to S3 close #224

* refactored questions to allow asking only some information

* ask for zip file

* use option --zip to pass zip filename

* install cloudflare-cli

* working on making individual binary steps work

* move buildDir and distDir to meta file

* update references

* refactor questions

* Mac binary zipped and installed successfully

* successful builds on both platforms, upload and install

* refactor combined step deploy function

* add building binary on linux to CircleCI

* install root deps only

* fine, make build binary depend on main build

* server: fix app data path

* name binary using SHA

* server: unskip test concerning productName

* build binary with serial mode

* driver: improve visibility algorithm

* server: add some logging around browser launching

* docs: update cy.trigger position option - fixes #108

* desktop: fix invalid dom nesting

* docs: Add FAQ question about 'how to test file download'

* desktop: fix un-returned promise warning when logging in

* rebuild node-sass for current platform automatically (#225)

* uncomment two lines

* desktop: use same dropdown as browsers for user menu

* desktop: simplify build scripts, remove unused deps

* readme: add docker cypress/base image badge

* fix typo in readme

* deploy: refactored to simplify uploading binary to S3 close #224

* refactored questions to allow asking only some information

* ask for zip file

* use option --zip to pass zip filename

* install cloudflare-cli

* working on making individual binary steps work

* move buildDir and distDir to meta file

* update references

* refactor questions

* Mac binary zipped and installed successfully

* successful builds on both platforms, upload and install

* refactor combined step deploy function

* add building binary on linux to CircleCI

* install root deps only

* fine, make build binary depend on main build

* name binary using SHA

* build binary with serial mode

* uncomment two lines

* print build linux folder on CI
2017-06-29 14:29:56 -04:00

23 lines
489 B
JavaScript

/* eslint-disable no-console */
require('@packages/coffee/register')
const command = process.argv[2]
if (!command) {
console.error('Missing deploy command ⛔️')
process.exit(1)
}
const commands = require('./deploy/index')
const fn = commands[command]
if (!fn) {
console.error('Invalid deploy command %s 🚫', command)
}
fn()
.then(() => console.log('✅ %s completed', command))
.catch((err) => {
console.error('🔥 deploy error')
console.error(err)
process.exit(1)
})