language: node_js cache: directories: - "node_modules" env: global: - "DISABLE_OPENCOLLECTIVE=true" before_install: - npm i -g npm@latest install: - npm install - npm run build jobs: include: - stage: test name: "e2e" before_install: skip install: skip services: - docker before_script: - sudo service mysql stop script: docker-compose build && docker-compose run lib node_js: 12 - stage: test name: "Unit Test Node v12" script: npm test node_js: 12 - stage: test name: "Unit Test Node v10" script: npm test node_js: 10 - stage: test name: "Unit Test Node v8" script: npm test node_js: 8 - stage : test name: "Build samples" install: - npm install script: npm run build:all node_js: 12 stages: - test