Commit graph

69 commits

Author SHA1 Message Date
Juan Tejada
b8883cd2b7 [dev] Only bootstrap specific pkgs in postinstall for faster installs
Summary:
This commit makes it so postinstall.es6 only bootstraps the packages we
are interested in based on a new env variable, `INSTALL_TARGET`.

`INSTALL_TARGET` can be set to `cloud`, `client` or `all`, or not set at all,
and our postinstall will bootstrap the packages accordingly. This will make
build and deploy times faster.

Test Plan: manual

Reviewers: spang, halla, evan, khamidou

Reviewed By: evan, khamidou

Differential Revision: https://phab.nylas.com/D4271
2017-03-28 13:59:55 -07:00
Evan Morikawa
093f315f59 [client-app] don't bootsrap cloud stuff when building the client
Summary:
We don't need to spend the time running script/bootstrap in our cloud-*
folders!

Test Plan: manual

Reviewers: spang, juan, halla

Reviewed By: juan, halla

Differential Revision: https://phab.nylas.com/D4214
2017-03-14 13:39:56 -07:00
Evan Morikawa
59361a7734 [client-app] fix travis env variables 2017-03-13 16:05:50 -07:00
Evan Morikawa
1f2370c2a9 [client-app] run windows build separately
Summary:
build-client, aka packaging, aka bundling is now separate from uploading.
This is both to compartmentalize our tasks a bit more and so we can add a
non-grunt windows task inbetween packaging and uploading.

No more heavily-overloaded PUBLISH_BUILD flag.
Added SIGN_BUILD flag instead.
No more TRAVIS and TRAVIS_PULL_REQUEST flag.

Test Plan: Manual

Reviewers: halla, juan, spang

Reviewed By: juan, spang

Differential Revision: https://phab.nylas.com/D4208
2017-03-13 15:48:45 -07:00
Evan Morikawa
2e89d4f643 [*] remove travs_wait now bootstrap more verbose 2017-03-06 14:13:12 -05:00
Evan Morikawa
fc2557051c [*] add travis_wait to build 2017-03-06 11:37:01 -05:00
Evan Morikawa
7b7318b220 [client-app] update Travis
Summary:
Also see:
3a33b0ad64
which was hot-pushed to master in order to get Travis building.

We now have two travis files:

1. /.travis.yml
2. /packages/client-app/travis.yml

The first one is alwas in the private repo and runs `npm install && npm
run build-client`. This decrypts our keys and signs, builds, and uploads
to S3.

The second one is designed to live in our yet-to-be public mirror. It will
basically just run `npm install && npm test`.

That way the public one should just about ALWAYS pass (YAY!) except of
course when you break the tests or something in the installer!

Test Plan: Run on new https://travis-ci.com/nylas/nylas-mail-all

Reviewers: jerm, spang, juan

Reviewed By: spang, juan

Differential Revision: https://phab.nylas.com/D3999
2017-02-22 16:19:45 -05:00
Evan Morikawa
3a33b0ad64 [client-app] update build system 2017-02-21 17:32:22 -05:00
Evan Morikawa
9f6889b03f [nylas-mail] move nylas-mail into /packages 2017-02-16 13:15:10 -08:00
Juan Tejada
8d36ce6723 Actually fix travis 2017-02-10 15:16:07 -08:00
Juan Tejada
d558990ecf fix(build) Fix travis build script 2017-02-10 15:11:43 -08:00
Juan Tejada
cab1acfcc9 fix(build/travis) Only run tests on mac 2017-02-10 15:01:50 -08:00
Evan Morikawa
eb5aa235a8 fix(build): re-add specs back into build process 2017-02-09 19:07:00 -05:00
Juan Tejada
43e1dd6e7c Fix travis config 2017-02-02 17:48:40 -08:00
Juan Tejada
4907c23608 Update travis config 2017-02-02 17:42:54 -08:00
Evan Morikawa
9bc87c1ba1 bump(electron): bump electron to 1.4.15 2017-01-30 15:55:13 -08:00
Evan Morikawa
1d6f634e1c fix(ci): add linux dependencies for keyboard-layout plugin build
https://github.com/atom/keyboard-layout/issues/27
2017-01-30 15:40:52 -08:00
Evan Morikawa
4fadcfdc89 fix(rename): remove n1-next references & update changelog link 2017-01-30 11:40:03 -08:00
Juan Tejada
f9d4974b51 fix(build) Temporarily remove tests 2017-01-06 09:58:55 -08:00
Tomasz Finc
e85954e1f6 Adding n1-next to AppVeyor builds
Test Plan: Run some builds

Reviewers: evan

Reviewed By: evan

Maniphest Tasks: T7377

Differential Revision: https://phab.nylas.com/D3574
2017-01-03 14:00:02 -08:00
Evan Morikawa
2650613ef1 Move old edgehill src/pro into K2/packages/nylas-private 2016-12-12 10:10:26 -05:00
Ben Gotow
c8a656059a fix(builds): Stop when tests fail, use Appveyor build phases 2016-11-09 14:40:27 -08:00
Ben Gotow
347238990b ci(*): Travis and AppVeyor changes, script cleanup
Also removed 32-bit build files which have been made obsolete. You can build 32-bit builds by altering script/bootstrap to specify a different arch
2016-11-09 14:13:09 -08:00
Evan Morikawa
dbc5a97cdd fix(travis): PUBLISH_BUILD only on mirror 2016-11-03 11:31:58 -07:00
Evan Morikawa
ff2e626037 fix(travis): fix conditional check in before_install 2016-11-02 14:54:17 -07:00
Evan Morikawa
ec7133dff1 fix(travis): Fix travis build script
fix(travis): Fix travis error

add debug to travis

bump(submodule)

Silence
2016-11-02 13:02:31 -07:00
Evan Morikawa
c651d272b0 fix(travis): Fix path to encrypted files 2016-11-02 12:26:45 -07:00
Evan Morikawa
73775ad31a feat(travis): allow builds on mirror 2016-11-02 12:23:19 -07:00
Evan Morikawa
5e582f97de fix(travis): build with Node 6.9 to fix npm build issue
Travis on Node 4.2 can't succeed installing the build folder with npm 2
due to a peerdependency issue that doesn't happen with latest node and npm
2016-10-28 10:09:42 -04:00
Evan Morikawa
05a50e5175 feat(travis): add ci-build/.* wildcard to building branches 2016-08-29 17:43:24 -07:00
Ben Gotow
cb10694986 build(travis): Drop Node 0.12 build, unclear if supported by babel 6 2016-05-13 14:57:37 -07:00
Juan Tejada
1a78a758f4 refactor(deltas): Update sync-worker to use NylasAPI.longConnection
Summary:
- Remove nylas-long-connection.coffee duplicate code from sync worker package
  and replace with delta-streaming-connection which uses NylasAPI.longConnection
- Replacement for XHR will come in another diff -- still need to clean up and
  fix some edge cases

Test Plan:
- TODO! Will add test coverage for NylasLongConnection and
  DeltaStreamingConnection

Reviewers: evan, bengotow

Reviewed By: evan, bengotow

Differential Revision: https://phab.nylas.com/D2875
2016-05-04 13:03:47 -07:00
Evan Morikawa
60d2c24693 feat(package): fix build-resources-task and move submodule 2016-04-25 16:01:56 -07:00
Juan Tejada
9848f8f086 Revert "fix(build): Actually make verbose"
This reverts commit a3156a1799.
2016-04-11 16:12:05 -07:00
Juan Tejada
a3156a1799 fix(build): Actually make verbose 2016-04-11 15:40:40 -07:00
Juan Tejada
191cc144db update(build): Add verbose flag 2016-04-11 15:20:31 -07:00
Evan Morikawa
071a769434 fix(travis): fewer builds 2016-02-25 17:04:32 -08:00
Ben Gotow
ee96339fed build(*): Add travis reporting to Slack 2016-02-03 14:36:02 -08:00
Evan Morikawa
9530a84877 feat(build): new rpm builds
Summary: Now builds RPM on Travis

Test Plan: manual

Reviewers: juan, bengotow

Reviewed By: bengotow

Differential Revision: https://phab.nylas.com/D2391
2016-01-04 09:56:14 -08:00
Ben Gotow
8ea8df8efc fix(ci): stable instead of release/* branches 2015-12-11 17:13:42 -08:00
Evan Morikawa
d3baa36259 feat(ci): add build/node_modules to cache 2015-12-10 14:22:05 -05:00
Evan Morikawa
d5ef810984 fix(ci): add caching and fix ssh issue 2015-12-10 14:16:55 -05:00
mbilker
8cea42fa1b fix(travis): include GitHub OAuth token to preven Electron download error 2015-12-10 11:59:32 -05:00
mbilker
5d95647ff5 fix(travis): use the private assets only when building branches from main repository 2015-12-10 11:59:32 -05:00
mbilker
3c6811c500 fix(travis): use the ssh_known_hosts addon to run ssh-keyscan
Travis provides a wonderful helper addon documented at
https://docs.travis-ci.com/user/ssh-known-hosts/.

The behavior changed moves the ssh-keyscan from the before_install
stage to the addons stage.
2015-12-10 11:59:32 -05:00
mbilker
94fb459c59 fix(travis): readd whitespace, reorder according to build Travis build process
Found the order at https://docs.travis-ci.com/user/customizing-the-build/.

In nylas/N1@d95cb45147 the entire build script
was merged from Evan Morikawa, which reordered the whole Travis build script.
athis commit reorders the to have the Travis build environment config at the
beginning of the script and the build process at the end and the Travis
secure variables at the end of the script.
2015-12-10 11:59:32 -05:00
Evan Morikawa
f56dc18690 feat(spec): add config dir to integration specs
Summary:
- You can now pass `--config-dir-path=/some/custom/path` to `./N1.sh`
- `main.coffee` cleaned up a bit. A lot of unused params from legacy Atom
  stuff were still being used
- Integration specs now set the config dir before booting.
- New spec to check for the autoupdater in the app and make sure it's
  pointing at the right place.

Test Plan: script/grunt run-integration-tests

Reviewers: juan, bengotow

Reviewed By: bengotow

Differential Revision: https://phab.nylas.com/D2331
2015-12-10 10:52:20 -05:00
Ben Gotow
37b7c6a6c7 perf(travis): Fewer mac builds—Travis has fixed OS X bandwidth 2015-12-09 19:38:44 -08:00
Evan Morikawa
d95cb45147 feat(ci): add Travis and AppVeyor ci support 2015-12-07 12:48:26 -05:00
Evan Morikawa
64188fc7fd fix(travis): only build ci-test 2015-12-04 16:39:42 -08:00