Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add travis ci for Unit tests #23

Merged
merged 7 commits into from
May 23, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
language: java
script:
- pushd services
- mvn test
- popd
- pushd ui
- npm install
- npm run ci-test
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Gatekeeper
# Gatekeeper [![Build Status](https://secure.travis-ci.org/FINRAOS/Gatekeeper.png?branch=master)](http://travis-ci.org/FINRAOS/Gatekeeper)

## What is Gatekeeper?
Gatekeeper is an application that we developed here at FINRA to manage temporary access to EC2 and RDS resources in AWS in an automated fashion
Expand Down
6 changes: 3 additions & 3 deletions ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
"main": "app/index.js",
"scripts": {
"prestart": "npm install",
"start": "node node_modules/webpack-dev-server/bin/webpack-dev-server.js --hot --color --content-base app/ --port 9000",
"start": "export NODE_ENV=dev && node node_modules/webpack-dev-server/bin/webpack-dev-server.js --hot --color --content-base app/ --port 9000",
"build": "export NODE_ENV=production && node node_modules/.bin/webpack && cp -r app/assets app/index.html dist",
"win-build": "set NODE_ENV=production && node_modules\\.bin\\webpack && mkdir dist\\assets && copy app\\assets dist\\assets && copy app\\index.html dist",
"pretest": "npm install",
"test": "karma start",
"ci-test": "karma start --single-run=true --browsers=PhantomJS",
"test": "export NODE_ENV=dev && karma start",
"ci-test": "export NODE_ENV=dev && karma start --single-run=true --browsers=PhantomJS",
"coverage": "karma start karma.conf.js --coverage",
"ci-coverage": "karma start --single-run=true --browsers=PhantomJS --coverage",
"test-single-run": "karma start karma.conf.js --single-run",
Expand Down