diff --git a/.circleci/config.yml b/.circleci/config.yml index 944ac3bd..f89e15ce 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -15,15 +15,38 @@ jobs: # - image: circleci/mongo:3.4.4 working_directory: ~/repo + environment: + shell: /bin/bash + TERM: xterm steps: - checkout - - run: | - echo hello world - git branch + - run: + name: Check whether most recent commit is signedoff + shell: /bin/bash + command: | + MESSAGE=`git log -1 --pretty=%B` + echo "Checking whether signed" + if [[ "${MESSAGE}" == *Signed-off-by:*@* ]]; then + echo "Commit is signedoff" + else + echo "Commit is not signedoff" + exit 1 + fi + - - run: cd public-interface; npm install + - run: + shell: /bin/bash + name: Install dependencies + command: | + cd public-interface + npm install # run tests! - - run: cd public-interface; node_modules/grunt-cli/bin/grunt build-api + - run: + shell: /bin/bash + name: Run linting and tests + command: | + cd public-interface + node_modules/grunt-cli/bin/grunt build-api diff --git a/README.md b/README.md index eee83f66..8403ff94 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ - +test12 # OISP Frontend and Dashboard This repository consists of 2 distinct components. A browser-based dashboard written using AngularJS and also a Node application that provides all the public APIs.