Skip to content

Commit

Permalink
feat(repository-tests): run repository-tests on cloudant
Browse files Browse the repository at this point in the history
  • Loading branch information
Agnes Lin committed Oct 18, 2019
1 parent 667b153 commit c6a175e
Show file tree
Hide file tree
Showing 13 changed files with 1,357 additions and 10 deletions.
32 changes: 22 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
sudo: false
language: node_js
node_js:
- "8"
- "10"
- "12"
- '8'
- '10'
- '12'

os:
- linux
Expand All @@ -21,26 +21,26 @@ after_success:

matrix:
include:
- node_js: "12"
- node_js: '12'
os: osx
# using the default script to build & run the tests

- node_js: "8"
# using the default script to build & run the tests
- node_js: '8'
os: linux
env: TASK=code-lint
# Running Code Linter -- Requires @loopback/build so it's bootstrapped
script:
- lerna bootstrap --scope @loopback/build --include-filtered-dependencies
- npm run lint
- node_js: "8"
- node_js: '8'
os: linux
env: TASK=commit-lint
script: commitlint-travis
- node_js: "8"
- node_js: '8'
os: linux
env: TASK=verify-docs
script: ./bin/verify-doc-changes.sh
- node_js: "10"
- node_js: '10'
os: linux
env:
- TASK=test-repository-mongodb
Expand All @@ -50,7 +50,7 @@ matrix:
- npm run postinstall -- --scope "@loopback/test-repository-mongodb" --include-filtered-dependencies
- npm run build -- --scope "@loopback/test-repository-mongodb" --include-filtered-dependencies
- cd acceptance/repository-mongodb && npm run mocha
- node_js: "10"
- node_js: '10'
os: linux
env:
- TASK=test-repository-mysql
Expand All @@ -67,6 +67,18 @@ matrix:
- npm run postinstall -- --scope "@loopback/test-repository-mysql" --include-filtered-dependencies
- npm run build -- --scope "@loopback/test-repository-mysql" --include-filtered-dependencies
- cd acceptance/repository-mysql && npm run mocha
- node_js: '10'
os: linux
env:
- TASK=test-repository-cloudant
- CLOUDANT=test
- CLOUDANT_PASSWORD=test
services:
- cloudant
script:
- npm run postinstall -- --scope "@loopback/test-repository-cloudant" --include-filtered-dependencies
- npm run build -- --scope "@loopback/test-repository-cloudant" --include-filtered-dependencies
- cd acceptance/repository-cloudant && npm run mocha

branches:
only:
Expand Down
1 change: 1 addition & 0 deletions acceptance/repository-cloudant/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package-lock=true
Empty file.
25 changes: 25 additions & 0 deletions acceptance/repository-cloudant/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
Copyright (c) IBM Corp. 2019. All Rights Reserved.
Node module: @loopback/test-repository-cloudant
This project is licensed under the MIT License, full text below.

--------

MIT license

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
6 changes: 6 additions & 0 deletions acceptance/repository-cloudant/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// Copyright IBM Corp. 2019. All Rights Reserved.
// Node module: @loopback/test-repository-cloudant
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT

export * from './dist';
6 changes: 6 additions & 0 deletions acceptance/repository-cloudant/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// Copyright IBM Corp. 2019. All Rights Reserved.
// Node module: @loopback/test-repository-cloudant
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT

module.exports = require('./dist');
8 changes: 8 additions & 0 deletions acceptance/repository-cloudant/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// Copyright IBM Corp. 2019. All Rights Reserved.
// Node module: @loopback/test-repository-cloudant
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT

// DO NOT EDIT THIS FILE
// Add any additional (re)exports to src/index.ts instead.
export * from './src';
Loading

0 comments on commit c6a175e

Please sign in to comment.