.gitlab-ci.yml 640B

123456789101112131415161718192021222324252627282930313233343536
  1. before_script:
  2. # Install dependencies
  3. - sh test/docker_install.sh > /dev/null
  4. - yarn
  5. services:
  6. - mariadb:latest
  7. - postgres:alpine
  8. variables:
  9. MYSQL_ROOT_PASSWORD: foo-bar-baz
  10. MYSQL_DATABASE: test
  11. MYSQL_USER: test
  12. MYSQL_PASSWORD: test
  13. POSTGRES_DB: test
  14. POSTGRES_USER: test
  15. POSTGRES_PASSWORD: test
  16. # This folder is cached between builds
  17. # http://docs.gitlab.com/ce/ci/yaml/README.html#cache
  18. cache:
  19. paths:
  20. - node_modules/
  21. test:8:
  22. image: node:8-alpine
  23. script: yarn run test
  24. test:9:
  25. image: node:9-alpine
  26. script: yarn run test
  27. test:latest:
  28. image: node:alpine
  29. script: yarn run test