From 43906a928b4fa41ac3d04427d5cbeca172fcefcf Mon Sep 17 00:00:00 2001 From: Anthony Law Yong Chuan Date: Mon, 26 Oct 2020 17:44:50 +0800 Subject: [PATCH 1/2] added travis setup --- .gitmodules | 3 +++ .travis.yml | 47 +++++++++++++++++++++++++++++++++++++++++++++++ travis | 1 + 3 files changed, 51 insertions(+) create mode 100644 .gitmodules create mode 100644 .travis.yml create mode 160000 travis diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..dcf374d --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "travis"] + path = travis + url = https://github.com/nemgrouplimited/travis-functions.git diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..63f349d --- /dev/null +++ b/.travis.yml @@ -0,0 +1,47 @@ +dist: bionic +language: node_js +node_js: + - 10 + - 12 +services: + - docker +env: + global: + - DEV_BRANCH=dev + - RELEASE_BRANCH=main + - POST_RELEASE_BRANCH=main + - RELEASE_MESSAGE=release +cache: + npm: true + directories: + - "node_modules" +before_script: + - . ./travis/node-functions.sh + - VERSION="$(node_load_version)" + - log_env_variables +script: + - npm run build +jobs: + include: + - stage: test + name: lint + script: npm run lint + - stage: test + name: docker test build + script: /bin/bash travis/docker-functions.sh docker_build $VERSION + node_js: 10 + - stage: publish + name: docker publish alpha + script: /bin/bash travis/docker-functions.sh docker_build $VERSION publish + if: branch = env(DEV_BRANCH) AND type = push + node_js: 10 + - stage: release + name: docker publish release + script: /bin/bash travis/docker-functions.sh docker_build $VERSION release + if: branch = env(RELEASE_BRANCH) AND type = api AND commit_message = env(RELEASE_MESSAGE) + node_js: 10 + - stage: post release + name: tag and version upgrade + script: /bin/bash travis/node-functions.sh node_post_release + if: branch = env(RELEASE_BRANCH) AND type = api AND commit_message = env(RELEASE_MESSAGE) + node_js: 10 diff --git a/travis b/travis new file mode 160000 index 0000000..522f452 --- /dev/null +++ b/travis @@ -0,0 +1 @@ +Subproject commit 522f452e19332bdea3c1d7823c7d8b1fda70ee16 From b90262c6c7d8dfbeef93808e2bfa700a223dd660 Mon Sep 17 00:00:00 2001 From: Anthony Law Yong Chuan Date: Mon, 26 Oct 2020 22:22:22 +0800 Subject: [PATCH 2/2] release note --- CHANGELOG.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..ddf56c1 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,27 @@ +# CHANGELOG +All notable changes to this project will be documented in this file. + +The changelog format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). + +## [v0.1.0][v0.1.0] - 26-Oct-2020 + +### Milestone: [catapult-server@v0.10.0.3](https://github.com/nemtech/catapult-server/releases/tag/v0.10.0.3) + +Package | Version | Link +---|---|--- +REST Core| v2.1.0 | [catapult-rest](https://github.com/nemtech/catapult-rest/releases/tag/v2.1.0) + +### Added +- Support docker images build. [#2](https://github.com/nemgrouplimited/symbol-statistics-service/issues/2) +- Support mongodb services. [#9](https://github.com/nemgrouplimited/symbol-statistics-service/issues/9) [#3](https://github.com/nemgrouplimited/symbol-statistics-service/issues/3) +- Support error handling. [#15](https://github.com/nemgrouplimited/symbol-statistics-service/issues/15) +- Support route to get specific node infomation. [#14](https://github.com/nemgrouplimited/symbol-statistics-service/issues/14) +- Support tcp port checking on node. [#7](https://github.com/nemgrouplimited/symbol-statistics-service/issues/7) +- Support checking node location module. [#5](https://github.com/nemgrouplimited/symbol-statistics-service/issues/5) +- Support node monitor module. [#1](https://github.com/nemgrouplimited/symbol-statistics-service/issues/1) [#8](https://github.com/nemgrouplimited/symbol-statistics-service/issues/8) [#6](https://github.com/nemgrouplimited/symbol-statistics-service/issues/6) +- Support logger. [#4](https://github.com/nemgrouplimited/symbol-statistics-service/issues/4) + +### Fixes +- Cors error. [#13](https://github.com/nemgrouplimited/symbol-statistics-service/issues/13) + +[v0.1.0]: https://github.com/nemfoundation/symbol-statistics-service/releases/tag/v0.1.0 \ No newline at end of file