From ef5ea0558a7cf60996110c77d57691f2c16aeaba Mon Sep 17 00:00:00 2001 From: Jaguar0625 Date: Sat, 12 May 2018 14:40:48 -0400 Subject: [PATCH] add travisci support --- .travis.yml | 28 ++++++++++++++++++++++++++++ README.md | 4 +++- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 000000000..a5c5d534a --- /dev/null +++ b/.travis.yml @@ -0,0 +1,28 @@ +language: node_js + +node_js: + - "8" + - "9" + +addons: + apt: + sources: + - ubuntu-toolchain-r-test + packages: + - libzmq3-dev + +services: mongodb + +env: + matrix: + - SUBPROJECT=catapult-sdk + - SUBPROJECT=monitor + - SUBPROJECT=rest + - SUBPROJECT=spammer + +cache: yarn + +before_script: + - sh yarn_setup.sh + +script: cd ${SUBPROJECT} && yarn test diff --git a/README.md b/README.md index 7eeeeb469..1adaa90da 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # catapult-rest +[![Build Status](https://api.travis-ci.org/nemtech/catapult-rest.svg?branch=master)](https://travis-ci.org/nemtech/catapult-rest) + ## Requirements - NodeJS version 8 or 9 @@ -10,4 +12,4 @@ Copyright (c) 2018 Jaguar0625, gimre, BloodyRookie, Tech Bureau, Corp Licensed under the [GNU Lesser General Public License v3](LICENSE) -[yarn]: https://yarnpkg.com/lang/en/ \ No newline at end of file +[yarn]: https://yarnpkg.com/lang/en/