Skip to content

Commit

Permalink
Adds travis config
Browse files Browse the repository at this point in the history
  • Loading branch information
JordanAdams committed Dec 12, 2016
1 parent cf66ab3 commit cac416a
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
dist/bundle.js
src/data/octodex
build

node_modules
npm-debug.log
9 changes: 9 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
deploy:
provider: releases
api_key:
secure: dYMTzFhBqvkPT+tYlDsMMnRMe5vn9asDyzkI8DxVKPYcEsXtKto3fDkoBndYmrNrGNMHhyblIbIKR7rYx2+xSNqCH3mFP2QWflZleewudm4pFMGsaogxk3K7B0SpSk3wMJxt8MROObVaC3kk8VOJiaGacSX+usqlASyEItTOSUZfftI0IytZdqWYpP/4cPv2lWaXVTtXU8Oy/lDzegJZ8dqKf+FDLQmbeG7YEPE1VXs2ffqDIv+j5wVoXTZhWE5/L38tdvA5/tJKdgm0hxBqRJN6sBuxKMii6O0TKUjXqCvSSXLYErqFMtCfRGfPXVBSWGN7Pq2nxGAc25KGxj4xYlNSWPqVGzo+BT5oGJL2mUBIfoBDpwPuGFK+vZqO6VQJVnTGCY9vm+c17t/0krDj0gpEpT92yu90YLvkx7kuDVX5WJOFhw3199xdiw+yGxvBjRQ9J6odJkFthLWar1imvZADJhjo4shKufGghGvFFcMMUuoh8SajzpxuTbyXwmdRWoUmkHitnLnNA67HIuoKC1uKwX8TDhQ1z85XoXyuUZgIpzcKDsmvquz1a6S2o46Ja/VXebxwxD1iyc3Yj1+719pILkCNMHPDBJchdO8jVCXmVfcoH9EH9By2pdwO2z5mzWcXgJcg3hpJsVugLFRrGu0GUF5q+JR7tWwuogmSeM4=
file: build/octotab.chromium.zip
skip_cleanup: true
on:
repo: JordanAdams/octotab
tags: true
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
"description": "",
"main": "index.js",
"scripts": {
"build-js": "webpack",
"build-octodex": "node scripts/get-octodex.js",
"build": "npm run build-octodex && npm run build-js",
"build": "./scripts/build.sh",
"watch": "webpack -w",
"postinstall": "npm run build",
"lint": "semistandard {src,scripts}/**/*.js | snazzy"
"lint": "semistandard {src,scripts}/**/*.js | snazzy",
"build-js": "webpack",
"build-octodex": "node scripts/get-octodex.js"
},
"pre-commit": [
"lint"
Expand Down
11 changes: 11 additions & 0 deletions scripts/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env bash
npm run build-js
npm run build-octodex

DIR=build
FILENAME=octotab.chromium.zip

rm -rf $DIR
mkdir -p $DIR

zip -r $DIR/$FILENAME dist

0 comments on commit cac416a

Please sign in to comment.