Commit Graph

22 Commits

Author SHA1 Message Date
Gleb Bahmutov
5015cbbe87 Wrap konfig load from scripts tests to avoid changing CWD (#4067)
* chore: add utility method to get konfig from scripts tests

Local scripts specs should be be caught by the changing current
directory when loading `konfig.coffee` (which loads `cwd.coffee`,
which changes the cwd to `packages/server`). This was throwing
snapshot tests into saving into a wrong folder until I have noticed
this and fixed in
[v8.0.3](https://github.com/bahmutov/snap-shot-core/releases/tag/v8.0.3)

* linting

* add more comments
2019-04-29 17:14:38 -04:00
Zach Bloomquist
47e98fa1d0 Use 'platform-arch' naming scheme for downloads (#3998)
* use 'platform-arch' naming scheme for downloads

* do full builds for this branch

* Revert "do full builds for this branch"

This reverts commit 6d539513e7.

* update wrong comments

* chore: test upload getCDN functions

* linting js

* unit test refactored manifest

* linting
2019-04-29 12:27:41 -04:00
Zach Bloomquist
db752f5f93 Only package Windows builds of ffmpeg with Windows, build for win32 and win64 (#3877)
* appveyor build for this branch

* don't force install ffmpeg on windows

don't force install ffmpeg on windows

* derp

* fix

* build in appveyor

* oops

* delete using del

* use RMDIR instead of DEL

* only build 32-bit

* build for x64 and x86 windows

* separate win32 and win64

* require lodash

* make electron arch configurable

* cross-compile 32, only run in 64-bit

* force install ffmpeg if necessary

* it's all win10 x64, but we can force it to build for ia32 in x32 mode

* add windows util

* who's idea was it to make whitespace meaningful?

* pass arch to npm install, pass arch to uploader

* add TARGET_PLATFORM

* fun fact: appveyor titlecases env var names

fun fact: appveyor titlecases env var names

* fix: pass args

* use process

* cli: use arch package to send arch to server

* pass TARGET_ARCH to all npm installs

* run-all

* always call getUploadNameByOs

* use the precise version of node, enable both x64 and ia32 arch

* quotes

* uh wat

* move console logs to script because windows

* add yet another env var to install the right node arch

* use x86, not x32

* give ia32 a try, why not

* use platform env again

* and also try x86 again

* remove notion of target_arch since we're using the right node version with arch set correctly

* more comprehensive checks to ensure the arch is correct

* simplify building the binary, do not accept arch as options

* build the binary and test it on this branch

* remove arch, ensure that process.env.Platform is set to x86

* do build the binary unless this is a forked PR

* attempt to verify that this is a 32bit or 64bit windows binary

* remove unused dep

* consolidate commands

* don't install packages in windows - just build the binary

- this avoids needing to reinstall all node_modules and build-js twice

* build the binary on more branches

* cd up appveyor

* ugh

* right logic for whether or not this is a forked PR

* remove unused deps

* fix undefined var

* platformArch

* set in options

* turns out we do have to npm install before building the binary

* options.platformArch

* comment out appveyor build 32bit/64bit verification temporarily


Co-authored-by: Brian Mann <brian.mann86@gmail.com>
2019-04-08 11:48:14 -04:00
Gleb Bahmutov
6cdaa5b4ef No dev deps in windows binary 2896 (#2904)
* build: print prod and dev dependencies in packages/server

* use npm v6 on Windows

* use only=production npm install flag

* use latest version of Node on AppVeyor

* add env with NODE_ENV=production

* pretty ms for npm install

* fix retry

* remove devDependencies from each file

* test binary build logic on Circle

* do not even run unit tests on circle

* form package json path

* cannot mapSeries twice

* pass package folder name

* fixed missing json to save

* uncomment circle tests

* update some comments, remove branches
2018-12-17 00:10:54 -05:00
Gleb Bahmutov
cbf1da0802 Separate bump next version command (#922)
* set set-next-ci-version script command

* use current package.json version when asking for next one

* showing actual error response from buildkite

* rename .aws-credentials.json to just aws-credentials.json file

* rename aws_credentials_json on appveyor
2017-11-16 14:12:30 -05:00
Gleb Bahmutov
158c5d2945 Env file name (#853)
* scripts: only use filename to get environment variables

* rename to STAGING_RECORD_KEY
2017-10-30 13:56:20 -04:00
Gleb Bahmutov
03126cf6f7 show env variable keys if failing to load 2017-10-30 12:48:59 -04:00
Gleb Bahmutov
b7ff236060 enable buildkite cypress-test-example-projects 2017-10-30 11:50:22 -04:00
Gleb Bahmutov
3ecb17f788 print message on url save into file 2017-10-23 17:21:19 -04:00
Gleb Bahmutov
ea89080016 CIRCLECI env not CIRCLE 2017-10-23 16:09:27 -04:00
Gleb Bahmutov
6d64ca42d6 form upload hash from CI environment vars if not set 2017-10-23 16:01:04 -04:00
Brian Mann
f8c84e9930 root: retry copying package into dist for random windows EPERM. remove unused driver/dist that was causing rejections 2017-10-10 04:48:28 -04:00
Brian Mann
09dc5573ac correct path to cf purge [skip ci] 2017-10-08 15:39:57 -04:00
Brian Mann
62183366e4 Merge remote-tracking branch 'origin/develop' into develop 2017-10-04 18:48:07 -04:00
Brian Mann
d657b3545f root: add release tasks to bump cypress server manifest [skip ci] 2017-10-04 18:47:59 -04:00
Gleb Bahmutov
9505640db0 install two ffmpeg architectures on Windows, close #558 (#561)
* install two ffmpeg architectures on Windows, close #558

* add missing function to export object
2017-10-04 21:00:11 +00:00
Gleb Bahmutov
56328d5200 add purge-version --version command, close #549 (#555) 2017-10-04 15:45:57 +00:00
Gleb Bahmutov
4672b569f1 Upload tar and zip (#536)
* run linter an all

* add NPM package CI job

* more steps for NPM package

* start upload NPM package

* more work on NPM package upload

* testing upload

* move purge cache to utils

* add unique binary build and upload from CI

* pass saved urls to test-binary job

* allow CYPRESS_BINARY_VERSION to be an url right away

* put uploaded urls into /tmp folder

* use explicit json filenames

* paths instead of path

* testing cypress npm and binary

* use NPM folder beta to store temp binary and package

* refactor utils

* set env vars and trigger other test projects

* only test NPM and binary on develop branch

* enable all jobs again
2017-10-01 17:01:19 -04:00
Gleb Bahmutov
a0c08bbdf3 Windows support (#484)
* try installing on Windows

* Handle windows setup

- no browser detection on windows yet, just placeholder code
- symlink types

* add appveyor file

* add appveyor windows build

* use execa to run server unit tests

* run server unit tests on appveyor

* ignore root install errors

* upgrade rebuild-node-sass

and work on Json unit test that fails on Windows

* print npm version

before installing, commented out caching node modules in the root

* a few small tweaks for windows support

* fix bin-up in launcher project

use bin-up@1.1.0 for windows support, close #491

* cli: build script on Windows, close #492

* cli: build errors are fatal

* use cross-env in extension

Fixes environment variables on Windows in #490

* extension: fix 3 tests on Windows

1 more broken test remaining

* extension: use EOL before comparing text

* example: update test for Windows

* example: replace build.sh with build.js

Close #488

* remove trailing whitespace

* cli: build script again

* server: work on unit tests for windows

* binary: add windows as build platform

* windows: try building binary

started work on building on CI for windows
2017-09-25 10:17:28 -04:00
Gleb Bahmutov
de305db260 Build app for both platforms (#249)
* binary: check platform, throw exception on mismatch

* binary: build script actually builds linux platform app

* zip from Mac both linux and darwin apps

* quiet npm installs during builds
2017-06-30 16:50:05 -04:00
Gleb Bahmutov
bf7b2cd673 symlink relative paths 2017-06-29 18:07:48 -04:00
Brian Mann
be211af10e deploy: rename deploy -> binary folder 2017-06-29 14:06:45 -04:00