diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..f262434 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,13 @@ +addons: + chrome: stable +language: node_js +node_js: + - 8 +before_script: + - export DISPLAY=:99.0 + - sh -e /etc/init.d/xvfb start + - npm config set spin false +install: + - npm install +script: + - npm run ci diff --git a/README.md b/README.md index 88aa6b8..f0fe372 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,11 @@ This is the repository for the LocalLoop web interface, for traders and customers to see and submit data to the service. +| Branch | Status | +| --- | --- | +| *Master:* | [![Build Status](https://travis-ci.org/Pear-Trading/Foodloop-Web.svg?branch=master)](https://travis-ci.org/Pear-Trading/Foodloop-Web) | +| *Development:* | [![Build Status](https://travis-ci.org/Pear-Trading/Foodloop-Web.svg?branch=development)](https://travis-ci.org/Pear-Trading/Foodloop-Web) | + ## Getting Started To get started with development, you will need an up to date version of diff --git a/package.json b/package.json index 2eadefd..d9b90a9 100644 --- a/package.json +++ b/package.json @@ -11,8 +11,10 @@ "start": "ng serve", "build": "ng build", "test": "ng test", + "test:once": "ng test --watch=false", "lint": "ng lint", - "e2e": "ng e2e" + "e2e": "ng e2e", + "ci": "npm run test:once && npm run e2e" }, "private": true, "dependencies": {