.travis.yml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. #
  2. # Licensed to the Apache Software Foundation (ASF) under one or more
  3. # contributor license agreements. See the NOTICE file distributed with
  4. # this work for additional information regarding copyright ownership.
  5. # The ASF licenses this file to You under the Apache License, Version 2.0
  6. # (the "License"); you may not use this file except in compliance with
  7. # the License. You may obtain a copy of the License at
  8. #
  9. # http://www.apache.org/licenses/LICENSE-2.0
  10. #
  11. # Unless required by applicable law or agreed to in writing, software
  12. # distributed under the License is distributed on an "AS IS" BASIS,
  13. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. # See the License for the specific language governing permissions and
  15. # limitations under the License.
  16. #
  17. jobs:
  18. include:
  19. - language: python
  20. python: 3.6
  21. env:
  22. - TOXENV=fossa
  23. install:
  24. - pip install --upgrade pip
  25. - pip install tox
  26. - language: python
  27. python: 3.6
  28. env:
  29. - TOXENV=license-check
  30. - TRAVIS_CACHE=$HOME/.travis_cache/
  31. addons:
  32. apt:
  33. packages:
  34. - openjdk-8-jdk
  35. install:
  36. - pip install --upgrade pip
  37. - pip install tox
  38. - language: python
  39. python: 3.6
  40. env: TOXENV=cypress-dashboard
  41. services:
  42. - redis-server
  43. before_install:
  44. - nvm install 10.14.2
  45. - language: python
  46. python: 3.6
  47. env: TOXENV=cypress-explore
  48. services:
  49. - redis-server
  50. before_install:
  51. - nvm install 10.14.2
  52. - language: python
  53. python: 3.6
  54. env: TOXENV=cypress-sqllab
  55. services:
  56. - redis-server
  57. before_install:
  58. - nvm install 10.14.2
  59. - language: python
  60. python: 3.6
  61. env: TOXENV=py36-mysql
  62. services:
  63. - mysql
  64. - redis-server
  65. before_script:
  66. - mysql -u root -e "DROP DATABASE IF EXISTS superset; CREATE DATABASE superset DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci"
  67. - mysql -u root -e "CREATE USER 'mysqluser'@'localhost' IDENTIFIED BY 'mysqluserpassword';"
  68. - mysql -u root -e "GRANT ALL ON superset.* TO 'mysqluser'@'localhost';"
  69. - language: python
  70. env: TOXENV=javascript
  71. before_install:
  72. - nvm install 10.14.2
  73. - language: python
  74. python: 3.6
  75. env: TOXENV=black
  76. - language: python
  77. python: 3.6
  78. env: TOXENV=isort
  79. - language: python
  80. python: 3.6
  81. env: TOXENV=mypy
  82. - language: python
  83. python: 3.6
  84. env: TOXENV=py36-sqlite
  85. services:
  86. - redis-server
  87. - language: python
  88. python: 3.6
  89. env: TOXENV=py36-postgres
  90. services:
  91. - postgresql
  92. - redis-server
  93. before_script:
  94. - psql -U postgres -c "CREATE DATABASE superset;"
  95. - psql -U postgres -c "CREATE USER postgresuser WITH PASSWORD 'pguserpassword';"
  96. - language: python
  97. python: 3.6
  98. env: TOXENV=pylint
  99. - language: python
  100. python: 3.6
  101. env: TOXENV=docs
  102. script:
  103. - tox
  104. after_success:
  105. - codecov
  106. cache:
  107. pip: true
  108. directories:
  109. - ~/.npm
  110. - ~/.cache
  111. - ~/.travis_cache/
  112. - superset-frontend/.terser-plugin-cache/
  113. addons:
  114. apt:
  115. packages:
  116. - libgconf-2-4
  117. install:
  118. - pip install --upgrade pip
  119. - pip install codecov tox