-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
41 lines (34 loc) · 1.03 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
sudo: false
dist: trusty
language: node_js
os:
- linux
- osx
node_js:
- 8
- node
matrix:
fast_finish: true
allow_failures:
- os: osx
before_script:
- if [[ "$TRAVIS_NODE_VERSION" == "8" && "$TRAVIS_OS_NAME" == "linux" ]]; then npm run lint; fi
- if [[ "$TRAVIS_NODE_VERSION" == "8" && "$TRAVIS_OS_NAME" == "linux" ]]; then npm run check; fi
- wget https://github.com/shopgate/connect-sdk-integration-test/archive/master.zip
- mkdir integration
- unzip master.zip -d integration
- cd integration/connect-sdk-integration-test-master
- npm i --no-package-lock
- cd ../../
install:
- npm i --no-package-lock
script:
- cd integration/connect-sdk-integration-test-master
- ls -la
- npm run test
- cd ../../
- if [[ "$TRAVIS_NODE_VERSION" == "8" && "$TRAVIS_OS_NAME" == "linux" ]]; then npm run cover; else npm t; fi
after_script:
- if [[ "$TRAVIS_NODE_VERSION" == "8" && "$TRAVIS_OS_NAME" == "linux" ]]; then cat ./build/lcov.info | ./node_modules/coveralls/bin/coveralls.js; fi
notifications:
email: false