Skip to content

Instantly share code, notes, and snippets.

@zeke
Created November 9, 2017 20:47
Show Gist options
  • Save zeke/0a2e28c3f13afc37a98697ac700bb7a1 to your computer and use it in GitHub Desktop.
Save zeke/0a2e28c3f13afc37a98697ac700bb7a1 to your computer and use it in GitHub Desktop.
$ heroku run npm run release
Running npm run release on ⬢ github-electron-apps... up, run.6681 (Standard-1X)
> electron-apps@1.1728.0 release /app
> script/release.sh
+ set -o errexit
+ set -o pipefail
+ set -o nounset
+ git clone https://github.com/electron/electron-apps app
Cloning into 'app'...
remote: Counting objects: 21443, done.
remote: Compressing objects: 100% (224/224), done.
remote: Total 21443 (delta 167), reused 127 (delta 35), pack-reused 21184
Receiving objects: 100% (21443/21443), 36.03 MiB | 14.63 MiB/s, done.
Resolving deltas: 92% (10984/11822)
Resolving deltas: 100% (11822/11822), done.
Checking connectivity... done.
+ cd app
+ npm install --quiet
> husky@0.14.3 install /app/app/node_modules/husky
> node ./bin/install.js
husky
setting up Git hooks
done
> sharp@0.17.3 install /app/app/node_modules/sharp
> node-gyp rebuild
make: Entering directory `/app/app/node_modules/sharp/build'
TOUCH Release/obj.target/libvips-cpp.stamp
CXX(target) Release/obj.target/sharp/src/common.o
CXX(target) Release/obj.target/sharp/src/metadata.o
CXX(target) Release/obj.target/sharp/src/operations.o
CXX(target) Release/obj.target/sharp/src/pipeline.o
CXX(target) Release/obj.target/sharp/src/sharp.o
CXX(target) Release/obj.target/sharp/src/utilities.o
SOLINK_MODULE(target) Release/obj.target/sharp.node
COPY Release/sharp.node
TOUCH Release/obj.target/win_copy_dlls.stamp
make: Leaving directory `/app/app/node_modules/sharp/build'
> spawn-sync@1.0.15 postinstall /app/app/node_modules/spawn-sync
> node postinstall
added 504 packages in 26.523s
+ npm run test-all
> electron-apps@1.1837.0 pretest-all /app/app
> npm run build
> electron-apps@1.1837.0 build /app/app
> npm-run-all build:*
> electron-apps@1.1837.0 build:clean /app/app
> node script/clean
> electron-apps@1.1837.0 build:resize /app/app
> node script/resize
Resizing 428 icons... Done.
> electron-apps@1.1837.0 build:dates /app/app
> node script/dates
Checking app submission dates...
elcalc: 2017-11-09
minimalist: 2017-11-09
thrifty: 2017-11-09
youtube-to-mp3: 2017-11-09
> electron-apps@1.1837.0 build:colors /app/app
> node script/colors
Extracting color palettes from app icons...
> electron-apps@1.1837.0 build:categories /app/app
> node script/categories
Generating a list of categories with counts...
> electron-apps@1.1837.0 build:releases /app/app
> node script/releases
227 of 428 apps have a GitHub repo.
5 of those 227 have missing or outdated release data.
minimalist: no releases found
thrifty: no releases found
insomnia: got latest release
youtube-to-mp3: got latest release
elcalc: got latest release
Done fetching release data.
Wrote /app/app/meta/releases.json
> electron-apps@1.1837.0 build:readmes /app/app
> node script/readmes
227 of 428 apps have a GitHub repo.
5 of those 227 have missing or outdated README data.
thrifty: got latest README
minimalist: got latest README
insomnia: got latest README
elcalc: got latest README
youtube-to-mp3: got latest README
Done fetching README files.
Wrote /app/app/meta/readmes.json
> electron-apps@1.1837.0 build:pack /app/app
> node script/pack
> electron-apps@1.1837.0 test-all /app/app
> mocha --reporter min && standard --fix
8150 passing (2s)
3 failing
1) machine-generated app data (exported by the module) rewrites relative image source tags:
AssertionError: object tested must be an array, an object, or a string, but undefined given
at Object.module.exports [as expectTypes] (node_modules/chai/lib/chai/utils/expectTypes.js:38:11)
at Assertion.include (node_modules/chai/lib/chai/core/assertions.js:206:7)
at Assertion.assert (node_modules/chai/lib/chai/utils/addChainableMethod.js:84:49)
at Context.it (test/machine-data.js:108:38)
2) machine-generated app data (exported by the module) releases collects latest GitHub release data for apps that have it:
AssertionError: expected 3 to be above 50
at Context.it (test/machine-data.js:71:40)
3) machine-generated app data (exported by the module) readmes collects READMEs for apps with GitHub repos:
AssertionError: expected 5 to be above 50
at Context.it (test/machine-data.js:87:39)
npm ERR! code ELIFECYCLE
npm ERR! errno 3
npm ERR! electron-apps@1.1837.0 test-all: `mocha --reporter min && standard --fix`
npm ERR! Exit status 3
npm ERR!
npm ERR! Failed at the electron-apps@1.1837.0 test-all script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /app/.npm/_logs/2017-11-09T06_30_18_960Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 3
npm ERR! electron-apps@1.1728.0 release: `script/release.sh`
npm ERR! Exit status 3
npm ERR!
npm ERR! Failed at the electron-apps@1.1728.0 release script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /app/.npm/_logs/2017-11-09T06_30_19_168Z-debug.log
~/git/electron/electron-apps master 2m 52s
$ heroku addons:open scheduler -a electron-apps
▸ You do not have access to the app electron-apps.
~/git/electron/electron-apps master
$ heroku login --sso
Enter your organization name: github-enterp^C
~/git/electron/electron-apps master
$ heroku addons:open scheduler -a github-electron-apps
▸ Invalid credentials provided.
Enter your Heroku credentials:
Email: ▸ Expected response to be successful, got 401
~/git/electron/electron-apps master
$ heroku login --sso
Enter your organization name: github-enterprise
Opening browser for login... done
Enter your access token (typing will be hidden): ************************************
Logged in as zeke@github.com
~/git/electron/electron-apps master 12s
$ heroku addons:open scheduler -a github-electron-apps
Opening https://addons-sso.heroku.com/apps/335ca9e7-c556-4188-9fdf-560683ce55db/addons/dd2c156e-a71b-4e97-8daf-31c9c5910310...
~/git/electron/electron-apps master
$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment