Skip to content

Commit

Permalink
Add deployment script to .travis.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
beheh committed Jul 10, 2017
1 parent c9405e5 commit b33c11d
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 11 deletions.
35 changes: 25 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,34 @@
language: node_js
node_js:
- "7"
- "6"
- "5"
- "4"
cache: yarn
matrix:
allow_failures:
- node_js: 4
- 8
- 7
- 6
env: NODE_ENV=dev
cache:
- yarn
- pip
jobs:
include:
- stage: deploy
node_js: 8
env: NODE_ENV=production
branches:
only:
- master
install:
- npm install -g gulp webpack yarn
- yarn --pure-lockfile
- pip install --user awscli
script:
- yarn build
- aws s3 sync --delete dist/ s3://$S3_DEFAULT_BUCKET/branches/$TRAVIS_BRANCH/
- gulp sentry:release
install:
- npm install -g gulp webpack yarn
- yarn --pure-lockfile
script:
- gulp compile:web
- npm test
- yarn build
- yarn test
notifications:
email:
on_failure: always
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Hearthstone replays in your browser, written in Typescript with React.

## Requirements

- Node.js ~v7 (v4.5 should also work, but is not officially supported)
- Node.js ~v8 (v4.5 should also work, but is not officially supported)
- Build system: `npm install -g gulp webpack`
- Development: `npm install -g electron-prebuilt gulp webpack`
- [yarn](https://yarnpkg.com/): `npm install -g yarn`
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"url": "https://github.com/HearthSim/Joust.git"
},
"scripts": {
"build": "gulp compile:web",
"test": "karma start --single-run --no-auto-watch karma.conf.js",
"postinstall": "gulp enums:download"
},
Expand Down

0 comments on commit b33c11d

Please sign in to comment.