Commit graph

48 commits

Author SHA1 Message Date
DD Liu
358032cd33 Remove greenkeeper lockfile 2021-03-23 17:13:08 -04:00
Christopher Willis-Ford
c73c4cc5af Adjust condition for release stage 2020-10-09 14:26:16 -07:00
Christopher Willis-Ford
30ee756fc7 add hotfix capability to .travis.yml 2020-10-09 13:46:35 -07:00
chrisgarrity
ff9d16065b
Add scratch-l10n dependency (#1799)
* update scratch-l10n dependency

The new scratch-l10n package includes a script that will push the source file to transfex. Updated the package.json to push the source after extracting strings.

Travis deploy that will build and push strings if run as a cron job

* Fix package-lock

Ran `npm i` as suggested by failing travis log.
2018-12-03 14:24:00 -05:00
Christopher Willis-Ford
812455db7c Explicitly specify Node versions for Travis 2018-11-19 12:09:38 -08:00
Paul Kaplan
11bdae2740 Use the newer date format for vm versions, to get greenkeepr working 2018-07-18 15:16:57 -04:00
Ray Schamp
bc7428ed07 Use production=false during install
Otherwise dev dependency bins aren't present
2018-06-28 11:22:35 -04:00
Ray Schamp
a8fd1f9c38 Set up package-lock support for greenkeeper 2018-06-28 10:52:04 -04:00
Ray Schamp
755cdd98e5 Remove cache from Travis, begin using npm ci
We have thought about moving to use package-lock.json the way NPM suggests, and at the same time have begun having issues with Travis caches. To address both at the same time, remove the cache from Travis, and make up the time by moving to package-lock.json + npm ci for install.
2018-06-28 10:52:04 -04:00
Mx Corey Frang
ea3a23e37c
Fix before_deploy script to properly quote (#1261) 2018-06-21 17:53:45 -04:00
Ray Schamp
14f56d713f Make sure the thing can build in PRs
This would have caught the issue in #1106
2018-05-31 17:03:55 -04:00
Ray Schamp
62d94559cd
Revert "Only run before_deploy once during deployment" 2018-05-24 17:43:47 -04:00
Ray Schamp
a48aff522f
Revert "Fix syntax error" 2018-05-24 17:43:06 -04:00
Ray Schamp
71f0e4254c Fix syntax error 2018-05-24 17:07:30 -04:00
Ray Schamp
ba53587999
Merge pull request #1132 from rschamp/before_deploy-once
Only run before_deploy once during deployment
2018-05-24 16:43:37 -04:00
Ray Schamp
feb90f1f8c
Actually do the deploy
Now that the release stage is only created for master and develop, allow the deploy to run on any branch. This way we can control which branches get deployed from the stage condition alone.
2018-05-09 16:47:06 -04:00
Ray Schamp
3d4b8f0a45 Only run before_deploy once during deployment
This prevents the package.json version number from doubling up no matter how many times or what order we deploy in
2018-05-09 10:04:25 -04:00
Ray Schamp
968927511a Don't run release stage for PR builds 2018-05-09 09:49:30 -04:00
Ray Schamp
756b7941af Make release stage conditional by branch
If the branch isn't a release branch, don't even try to do the release stage.  This should speed up PR tests.
2018-05-08 23:51:50 -04:00
Ray Schamp
bfde3f476c Specify Node 8 in build stages 2018-05-08 19:38:05 -04:00
Ray Schamp
4dca1b29aa Don't use NODE_ENV=production for the matrix
This is something we want enabled for all builds, so it should be a global. This should simplify the matrix. The builds without an NPM_SCRIPT didn't do anything anyway.
2018-05-08 19:37:09 -04:00
Ray Schamp
a12e4dfbae Update Travis Node to 8
The peer dependency fix seemed to work, but we want to be up to 8 on all our repos anyway so do that.
2018-05-08 19:36:01 -04:00
Ray Schamp
c705be4cfa Update expose-loader dependency instead
It doesn't make sense that webpack 4 has made Node 6 builds. Maybe it's due to peer dependencies on the install step?
2018-05-08 19:27:26 -04:00
Ray Schamp
6da5da7c38 Bump Travis to Node 8
Tests fail otherwise, with the new version of webpack?
2018-05-08 18:53:36 -04:00
Ray Schamp
fc1a5ffc7d Reorder NPM deploy to first position
I think this should fix the odd "0.1.0-prerelease.####-prerelease.#####" version numbers.
2018-04-06 10:13:29 -04:00
Paul Kaplan
d83f32c578 Use production=false in install step 2017-11-17 11:48:22 -05:00
Paul Kaplan
a036564a60 Add node env to travis 2017-11-17 10:06:38 -05:00
Ray Schamp
e0e10b61c5 Finish configuring npm deploy
More followup fixes on #567, wasn't possible to test npm deployments really.
2017-07-19 13:48:55 -04:00
Ray Schamp
7eae7e1957 Build the vm so we can deploy it
Whoops.

Also move the git deploy setup to before_deploy.
2017-07-19 12:04:22 -04:00
Ray Schamp
55d0b2650c Convert multi-entry script to single scalar
Multi-entries aren't supported
https://docs.travis-ci.com/user/deployment/script
2017-07-19 11:54:51 -04:00
Ray Schamp
0e11ff1c23 Fix provider 'on' key being converted to 'true' 2017-07-19 10:28:54 -04:00
Ray Schamp
e173a0ae2c Fix NPM_SCRIPT vars 2017-06-27 09:28:56 -04:00
Ray Schamp
3f53c3fd5c Allow condition alone to control release 2017-06-27 09:28:56 -04:00
Ray Schamp
28dae39ddd Use stages instead of travis-after-all
Also, parallelize tap tests
2017-06-27 09:26:40 -04:00
Ray Schamp
7dc9fad41e Update to Node 6 LTS 2017-04-17 20:03:28 -04:00
Ray Schamp
2569baaa59 Fix "stable" specifier for Travis
This shorthand has become unrecognized, so match the docs suggestion of "node" for the most recent stable release.
2016-12-21 09:20:18 -05:00
Ray Schamp
fa0918b592 Prevent npm from outputting repo URL 2016-10-18 12:56:53 -04:00
Ray Schamp
1b9f9e63d6 Fix scratch-* dependency versions for npm update
The issues:
* The scratch-blocks@0.1.0 version exists because I accidentally published 0.1.0 (no -prerelease modifier) while setting up NPM
* I added a step that causes Travis to run `npm update` after installing
* The "0.1.0-prepublish" dependency version makes no sense

This made Travis install the old version of scratch-blocks that I published accidentally, which breaks the playground.
2016-10-18 12:00:52 -04:00
Ray Schamp
2abfe25d6d Fix gh-pages commit messages
Don't output full logs, just the commit that the build is for. And use the author, not the committer, since GitHub is almost always the committer on develop.
2016-10-18 10:16:34 -04:00
Andrew Sliwinski
80fa2d5a58 Resolve merge conflicts 2016-10-17 10:50:24 -04:00
Ray Schamp
95dc6d38b3 Update packages after installing
This is the less hacky way to keep scratch-* packages up to date (and any others in the future).  This is only necessary because we cache the node_modules directory.
2016-10-17 09:38:41 -04:00
Andrew Sliwinski
6cd9697bed Add secure environment var for coveralls. Re GH-103 2016-10-04 15:21:55 -04:00
Ray Schamp
5b3fe7ee1b Ensure scratch-* dependencies are up to date
With node_modules cached, npm install sees the scratch-* dependencies satisfied (since if any version 0.1.0-prepublish.x satisfies ^0.1.0-prepublish).  So remove these before the install step to ensure the latest version is installed.
2016-10-03 11:35:13 -04:00
Ray Schamp
e31fc19a50 Update version format
-prerelease.[timestamp] is semver friendly. Move SHA info to package.json.
2016-09-27 09:20:55 -04:00
Ray Schamp
e9cb0a5102 Add explanatory comments 2016-09-26 09:42:53 -04:00
Ray Schamp
7eb2e58a38 Publish to NPM
Authenticate with NPM via .npmrc and publish the package version + "-[git sha]".

Remove vm and vm.min.js, they'll be built before the package is published to NPM and available on installation. When installing from git, the build step will run on npm install.
2016-09-26 09:42:53 -04:00
Ray Schamp
89f751e651 Publish playground to gh-pages 2016-09-26 09:42:53 -04:00
Andrew Sliwinski
14b92f8a99 Add travis config 2016-04-18 17:22:23 -04:00