Skip to content

Commit

Permalink
chore: travis & appveyor living in peace
Browse files Browse the repository at this point in the history
  • Loading branch information
reflog committed Jun 9, 2017
1 parent 540dd5d commit e08ddd4
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 26 deletions.
23 changes: 2 additions & 21 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
sudo: false
env:
- DEBUG: "*"
language: node_js
node_js: '6'
cache:
Expand All @@ -13,8 +11,6 @@ os:
- osx
- linux

before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update && brew install wine && wine --version && brew install makensis ;fi
addons:
apt:
sources:
Expand All @@ -36,22 +32,7 @@ notifications:
before_script:
- npm prune
after_success:
- |
git remote add auth https://cerebraljs:${GH_TOKEN}@github.com/cerebral/cerebral-debugger;
git config --global user.email "[email protected]";
git config --global user.name "Christian Alfoni";
if [[ $TRAVIS_PULL_REQUEST == 'false' ]]; then
npm run build;
if [[ $TRAVIS_OS_NAME == 'linux' ]]; then
npm run package:linux --verbose;
fi
if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
npm run package:mac_and_win --verbose;
fi
if [[ $? -ne 0 ]] ; then
exit 1
fi
fi
- bash -x ./perform_ci_build.sh
branches:
only:
- master
- master
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Cerebral-Debugger

[![Build status][travis-image]][travis-url]
[![Build status](https://ci.appveyor.com/api/projects/status/oxof3l7jq59ovaof?svg=true)](https://ci.appveyor.com/project/reflog/cerebral-debugger)

The powerful development tool for [Cerebral](http://cerebraljs.com).

Expand Down
24 changes: 24 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
version: 1.0.{build}

platform:
- x64
cache:
- node_modules
- '%APPDATA%\npm-cache'
- '%USERPROFILE%\.electron'

init:
- git config --global core.autocrlf input
- git config --global user.email "[email protected]"
- git config --global user.name "Christian Alfoni"

install:
- ps: Install-Product node 8 x64
- set CI=true
- npm install

build_script:
- npm run build
- npm run package:win

test: off
9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,9 @@
"electron": "electron .",
"build": "cross-env NODE_ENV=production webpack && npm run prepare:electron",
"prepare:electron": "rimraf electron/dist electron/node_modules && node scripts/createElectronSymlink",
"package:win": "build -w",
"package:mac": "build -m",
"package:linux": "build -l",
"package:mac_and_win": "build -wm",
"package:win": "cross-env DEBUG=electron-builder:7z,electron-builder build -w",
"package:mac": "cross-env DEBUG=electron-builder:7z,electron-builder build -m",
"package:linux": "cross-env DEBUG=electron-builder:7z,electron-builder build -l",
"lint": "standard",
"test": "npm run lint"
},
Expand Down Expand Up @@ -73,7 +72,7 @@
"cross-env": "^4.0.0",
"css-loader": "^0.26.0",
"electron": "^1.4.1",
"electron-builder": "^17.0.1",
"electron-builder": "18.6.2",
"express": "^4.14.0",
"file-loader": "^0.11.1",
"rimraf": "^2.5.4",
Expand Down
14 changes: 14 additions & 0 deletions perform_ci_build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
git remote add auth https://cerebraljs:${GH_TOKEN}@github.com/cerebral/cerebral-debugger
git config --global user.email "[email protected]"
git config --global user.name "Christian Alfoni"
if [[ $TRAVIS_PULL_REQUEST == 'false' ]]; then npm run build;
if [[ $TRAVIS_OS_NAME == 'linux' ]]; then
npm run package:linux --verbose;
fi
if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
npm run package:mac --verbose;
fi
if [[ $? -ne 0 ]] ; then
exit 1;
fi
fi

0 comments on commit e08ddd4

Please sign in to comment.