Skip to content

Commit

Permalink
Add travis config and bump version (#10)
Browse files Browse the repository at this point in the history
Add travis config and bump version
  • Loading branch information
robinmitra authored Jun 7, 2019
2 parents 4d9671a + 7d749e6 commit cecccdc
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 2 deletions.
47 changes: 47 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
matrix:
include:
- os: osx
osx_image: xcode9.4
language: node_js
node_js: "11"
env:
- ELECTRON_CACHE=$HOME/.cache/electron
- ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder

- os: linux
services: docker
language: generic

cache:
yarn: true
directories:
- node_modules
- $HOME/.cache/electron
- $HOME/.cache/electron-builder

sudo: false

before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.16.0
- export PATH=$HOME/.yarn/bin:$PATH

script:
- |
if [ "$TRAVIS_OS_NAME" == "linux" ]; then
docker run --rm \
--env-file <(env | grep -vE '\r|\n' | grep -iE 'DEBUG|NODE_|ELECTRON_|YARN_|NPM_|CI|CIRCLE|TRAVIS|APPVEYOR_|CSC_|_TOKEN|_KEY|AWS_|STRIP|BUILD_') \
-v ${PWD}:/project \
-v ~/.cache/electron:/root/.cache/electron \
-v ~/.cache/electron-builder:/root/.cache/electron-builder \
electronuserland/builder:wine \
/bin/bash -c "yarn --link-duplicates --pure-lockfile && yarn release --linux --win"
else
yarn release
fi
before_cache:
- rm -rf $HOME/.cache/electron-builder/wine

branches:
except:
- "/^v\\d+\\.\\d+\\.\\d+$/"
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
{
"name": "quote-factory",
"version": "0.1.0",
"version": "0.2.0",
"description": "A minimal app for getting your dose of famous quotes.",
"main": "main.js",
"scripts": {
"start": "electron .",
"pack": "electron-builder --dir",
"dist": "electron-builder"
"dist": "electron-builder",
"release": "build"
},
"build": {
"appId": "com.robinmitra.gimme-quote",
Expand Down

0 comments on commit cecccdc

Please sign in to comment.