Skip to content

Commit

Permalink
feature(restful) updated travis.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelyali committed Dec 17, 2018
1 parent d809815 commit a7b09b4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
18 changes: 11 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
language: node_js

node_js:
- '8'
- '9'
- '10'

env:
- DOCKER_COMPOSE_VERSION=1.23.1

before_install:
- sudo rm /usr/local/bin/docker-compose
- curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin

before_script:
- npm i -g npm@latest

install:
- docker-compose up -d
- npm i
# script:
# - npm test
# - npm run test:e2e

# after_success: npm run coverage
- npm run test:e2e | coveralls
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"scripts": {
"docker:up": "docker-compose up -d",
"docker:down": "docker-compose down",
"test:e2e": "node_modules/.bin/jest --verbose --coverage --config ./jest.json",
"test:e2e": "node_modules/.bin/jest --verbose --coverage --config ./jest.json --coverageReporters=text-lcov",
"pretest:e2e": "npm run test:e2e:typeorm:prepare",
"posttest:e2e": "npm run test:e2e:typeorm:clean",
"test:e2e:typeorm:prepare": "cd integration/typeorm && npm run db:sync -- -f=e2e/orm && npm run db:flush -- -f=e2e/orm && npm run db:seeds -- -f=e2e/orm",
Expand Down

0 comments on commit a7b09b4

Please sign in to comment.