-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:Shanfang/SmartNote
- Loading branch information
Showing
3 changed files
with
42 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,23 @@ | ||
sudo: required | ||
dist: trusty | ||
language: node_js | ||
node_js: | ||
- '4.2' | ||
- "8.5" | ||
os: osx | ||
|
||
addons: | ||
apt: | ||
sources: | ||
- google-chrome | ||
packages: | ||
- google-chrome-stable | ||
- google-chrome-beta | ||
|
||
before_install: | ||
- export CHROME_BIN=chromium-browser | ||
- export DISPLAY=:99.0 | ||
- sh -e /etc/init.d/xvfb start | ||
branches: | ||
only: | ||
- master | ||
|
||
before_script: | ||
- npm install -g angular-cli | ||
- npm install -g karma | ||
- npm install | ||
- ng build | ||
|
||
|
||
script: | ||
sh build.sh | ||
|
||
serives: | ||
mongod | ||
|
||
|
||
script: karma start config/karma.conf.js --single-run | ||
notifications: | ||
email: | ||
on_failure: change | ||
on_success: change |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
|
||
cd smart-note | ||
npm install | ||
npm install simplemde --save | ||
npm install angular-highlightjs --save | ||
npm install -g mocha | ||
npm install chai | ||
npm install supertest --save-dev | ||
|
||
|
||
brew update | ||
brew install mongodb | ||
mkdir -p /data/db | ||
sudo chown -R `id -un` /data/db | ||
|
||
mongod & | ||
|
||
cd server | ||
npm install | ||
npm run dev | ||
|
||
cd .. | ||
|
||
npm run start & |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters