.travis.yml 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283
  1. language: node_js
  2. os:
  3. - linux
  4. node_js:
  5. - "11.6"
  6. - "10.15"
  7. - "9.11"
  8. - "8.15"
  9. - "7.10"
  10. - "6.16"
  11. - "5.12"
  12. - "4.9"
  13. - "iojs-v3.3"
  14. - "iojs-v2.5"
  15. - "iojs-v1.8"
  16. - "0.12"
  17. - "0.10"
  18. - "0.8"
  19. - "0.6"
  20. cache:
  21. directories:
  22. - "$HOME/.npm"
  23. - "$(nvm cache dir)"
  24. - "$(nvm_version_path $(nvm_version_remote 0.4))"
  25. - "$(nvm_version_path $(nvm_version_remote 0.6))"
  26. - "$(nvm_version_path $(nvm_version_remote 0.10))"
  27. before_install:
  28. - 'case "${TRAVIS_NODE_VERSION}" in 0.*) export NPM_CONFIG_STRICT_SSL=false ;; esac'
  29. - 'nvm install-latest-npm'
  30. install:
  31. - 'if [ "${TRAVIS_NODE_VERSION}" = "0.6" ] || [ "${TRAVIS_NODE_VERSION}" = "0.9" ]; then nvm install --latest-npm 0.8 && npm install && nvm use "${TRAVIS_NODE_VERSION}"; else npm install; fi;'
  32. script:
  33. - 'if [ -n "${PRETEST-}" ]; then npm run pretest ; fi'
  34. - 'if [ -n "${POSTTEST-}" ]; then npm run posttest ; fi'
  35. - 'if [ -n "${COVERAGE-}" ]; then npm run coverage && bash <(curl -s https://codecov.io/bash) -f coverage/*.json; fi'
  36. - 'if [ -n "${TEST-}" ]; then npm run tests-only ; fi'
  37. sudo: false
  38. env:
  39. - TEST=true
  40. matrix:
  41. fast_finish: true
  42. include:
  43. - node_js: "lts/*"
  44. env: PRETEST=true
  45. - node_js: "lts/*"
  46. env: POSTTEST=true
  47. - node_js: "0.8"
  48. env: COVERAGE=true
  49. - node_js: "0.12"
  50. env: COVERAGE=true
  51. - node_js: "4"
  52. env: COVERAGE=true
  53. - node_js: "8"
  54. env: COVERAGE=true
  55. - node_js: "11.5"
  56. env: TEST=true ALLOW_FAILURE=true
  57. - node_js: "11.4"
  58. env: TEST=true ALLOW_FAILURE=true
  59. - node_js: "11.3"
  60. env: TEST=true ALLOW_FAILURE=true
  61. - node_js: "11.2"
  62. env: TEST=true ALLOW_FAILURE=true
  63. - node_js: "11.1"
  64. env: TEST=true ALLOW_FAILURE=true
  65. - node_js: "11.0"
  66. env: TEST=true ALLOW_FAILURE=true
  67. - node_js: "10.14"
  68. env: TEST=true ALLOW_FAILURE=true
  69. - node_js: "10.13"
  70. env: TEST=true ALLOW_FAILURE=true
  71. - node_js: "10.12"
  72. env: TEST=true ALLOW_FAILURE=true
  73. - node_js: "10.11"
  74. env: TEST=true ALLOW_FAILURE=true
  75. - node_js: "10.10"
  76. env: TEST=true ALLOW_FAILURE=true
  77. - node_js: "10.9"
  78. env: TEST=true ALLOW_FAILURE=true
  79. - node_js: "10.8"
  80. env: TEST=true ALLOW_FAILURE=true
  81. - node_js: "10.7"
  82. env: TEST=true ALLOW_FAILURE=true
  83. - node_js: "10.6"
  84. env: TEST=true ALLOW_FAILURE=true
  85. - node_js: "10.5"
  86. env: TEST=true ALLOW_FAILURE=true
  87. - node_js: "10.4"
  88. env: TEST=true ALLOW_FAILURE=true
  89. - node_js: "10.3"
  90. env: TEST=true ALLOW_FAILURE=true
  91. - node_js: "10.2"
  92. env: TEST=true ALLOW_FAILURE=true
  93. - node_js: "10.1"
  94. env: TEST=true ALLOW_FAILURE=true
  95. - node_js: "10.0"
  96. env: TEST=true ALLOW_FAILURE=true
  97. - node_js: "9.10"
  98. env: TEST=true ALLOW_FAILURE=true
  99. - node_js: "9.9"
  100. env: TEST=true ALLOW_FAILURE=true
  101. - node_js: "9.8"
  102. env: TEST=true ALLOW_FAILURE=true
  103. - node_js: "9.7"
  104. env: TEST=true ALLOW_FAILURE=true
  105. - node_js: "9.6"
  106. env: TEST=true ALLOW_FAILURE=true
  107. - node_js: "9.5"
  108. env: TEST=true ALLOW_FAILURE=true
  109. - node_js: "9.4"
  110. env: TEST=true ALLOW_FAILURE=true
  111. - node_js: "9.3"
  112. env: TEST=true ALLOW_FAILURE=true
  113. - node_js: "9.2"
  114. env: TEST=true ALLOW_FAILURE=true
  115. - node_js: "9.1"
  116. env: TEST=true ALLOW_FAILURE=true
  117. - node_js: "9.0"
  118. env: TEST=true ALLOW_FAILURE=true
  119. - node_js: "8.14"
  120. env: TEST=true ALLOW_FAILURE=true
  121. - node_js: "8.13"
  122. env: TEST=true ALLOW_FAILURE=true
  123. - node_js: "8.12"
  124. env: TEST=true ALLOW_FAILURE=true
  125. - node_js: "8.11"
  126. env: TEST=true ALLOW_FAILURE=true
  127. - node_js: "8.10"
  128. env: TEST=true ALLOW_FAILURE=true
  129. - node_js: "8.9"
  130. env: TEST=true ALLOW_FAILURE=true
  131. - node_js: "8.8"
  132. env: TEST=true ALLOW_FAILURE=true
  133. - node_js: "8.7"
  134. env: TEST=true ALLOW_FAILURE=true
  135. - node_js: "8.6"
  136. env: TEST=true ALLOW_FAILURE=true
  137. - node_js: "8.5"
  138. env: TEST=true ALLOW_FAILURE=true
  139. - node_js: "8.4"
  140. env: TEST=true ALLOW_FAILURE=true
  141. - node_js: "8.3"
  142. env: TEST=true ALLOW_FAILURE=true
  143. - node_js: "8.2"
  144. env: TEST=true ALLOW_FAILURE=true
  145. - node_js: "8.1"
  146. env: TEST=true ALLOW_FAILURE=true
  147. - node_js: "8.0"
  148. env: TEST=true ALLOW_FAILURE=true
  149. - node_js: "7.9"
  150. env: TEST=true ALLOW_FAILURE=true
  151. - node_js: "7.8"
  152. env: TEST=true ALLOW_FAILURE=true
  153. - node_js: "7.7"
  154. env: TEST=true ALLOW_FAILURE=true
  155. - node_js: "7.6"
  156. env: TEST=true ALLOW_FAILURE=true
  157. - node_js: "7.5"
  158. env: TEST=true ALLOW_FAILURE=true
  159. - node_js: "7.4"
  160. env: TEST=true ALLOW_FAILURE=true
  161. - node_js: "7.3"
  162. env: TEST=true ALLOW_FAILURE=true
  163. - node_js: "7.2"
  164. env: TEST=true ALLOW_FAILURE=true
  165. - node_js: "7.1"
  166. env: TEST=true ALLOW_FAILURE=true
  167. - node_js: "7.0"
  168. env: TEST=true ALLOW_FAILURE=true
  169. - node_js: "6.15"
  170. env: TEST=true ALLOW_FAILURE=true
  171. - node_js: "6.14"
  172. env: TEST=true ALLOW_FAILURE=true
  173. - node_js: "6.13"
  174. env: TEST=true ALLOW_FAILURE=true
  175. - node_js: "6.12"
  176. env: TEST=true ALLOW_FAILURE=true
  177. - node_js: "6.11"
  178. env: TEST=true ALLOW_FAILURE=true
  179. - node_js: "6.10"
  180. env: TEST=true ALLOW_FAILURE=true
  181. - node_js: "6.9"
  182. env: TEST=true ALLOW_FAILURE=true
  183. - node_js: "6.8"
  184. env: TEST=true ALLOW_FAILURE=true
  185. - node_js: "6.7"
  186. env: TEST=true ALLOW_FAILURE=true
  187. - node_js: "6.6"
  188. env: TEST=true ALLOW_FAILURE=true
  189. - node_js: "6.5"
  190. env: TEST=true ALLOW_FAILURE=true
  191. - node_js: "6.4"
  192. env: TEST=true ALLOW_FAILURE=true
  193. - node_js: "6.3"
  194. env: TEST=true ALLOW_FAILURE=true
  195. - node_js: "6.2"
  196. env: TEST=true ALLOW_FAILURE=true
  197. - node_js: "6.1"
  198. env: TEST=true ALLOW_FAILURE=true
  199. - node_js: "6.0"
  200. env: TEST=true ALLOW_FAILURE=true
  201. - node_js: "5.11"
  202. env: TEST=true ALLOW_FAILURE=true
  203. - node_js: "5.10"
  204. env: TEST=true ALLOW_FAILURE=true
  205. - node_js: "5.9"
  206. env: TEST=true ALLOW_FAILURE=true
  207. - node_js: "5.8"
  208. env: TEST=true ALLOW_FAILURE=true
  209. - node_js: "5.7"
  210. env: TEST=true ALLOW_FAILURE=true
  211. - node_js: "5.6"
  212. env: TEST=true ALLOW_FAILURE=true
  213. - node_js: "5.5"
  214. env: TEST=true ALLOW_FAILURE=true
  215. - node_js: "5.4"
  216. env: TEST=true ALLOW_FAILURE=true
  217. - node_js: "5.3"
  218. env: TEST=true ALLOW_FAILURE=true
  219. - node_js: "5.2"
  220. env: TEST=true ALLOW_FAILURE=true
  221. - node_js: "5.1"
  222. env: TEST=true ALLOW_FAILURE=true
  223. - node_js: "5.0"
  224. env: TEST=true ALLOW_FAILURE=true
  225. - node_js: "4.8"
  226. env: TEST=true ALLOW_FAILURE=true
  227. - node_js: "4.7"
  228. env: TEST=true ALLOW_FAILURE=true
  229. - node_js: "4.6"
  230. env: TEST=true ALLOW_FAILURE=true
  231. - node_js: "4.5"
  232. env: TEST=true ALLOW_FAILURE=true
  233. - node_js: "4.4"
  234. env: TEST=true ALLOW_FAILURE=true
  235. - node_js: "4.3"
  236. env: TEST=true ALLOW_FAILURE=true
  237. - node_js: "4.2"
  238. env: TEST=true ALLOW_FAILURE=true
  239. - node_js: "4.1"
  240. env: TEST=true ALLOW_FAILURE=true
  241. - node_js: "4.0"
  242. env: TEST=true ALLOW_FAILURE=true
  243. - node_js: "iojs-v3.2"
  244. env: TEST=true ALLOW_FAILURE=true
  245. - node_js: "iojs-v3.1"
  246. env: TEST=true ALLOW_FAILURE=true
  247. - node_js: "iojs-v3.0"
  248. env: TEST=true ALLOW_FAILURE=true
  249. - node_js: "iojs-v2.4"
  250. env: TEST=true ALLOW_FAILURE=true
  251. - node_js: "iojs-v2.3"
  252. env: TEST=true ALLOW_FAILURE=true
  253. - node_js: "iojs-v2.2"
  254. env: TEST=true ALLOW_FAILURE=true
  255. - node_js: "iojs-v2.1"
  256. env: TEST=true ALLOW_FAILURE=true
  257. - node_js: "iojs-v2.0"
  258. env: TEST=true ALLOW_FAILURE=true
  259. - node_js: "iojs-v1.7"
  260. env: TEST=true ALLOW_FAILURE=true
  261. - node_js: "iojs-v1.6"
  262. env: TEST=true ALLOW_FAILURE=true
  263. - node_js: "iojs-v1.5"
  264. env: TEST=true ALLOW_FAILURE=true
  265. - node_js: "iojs-v1.4"
  266. env: TEST=true ALLOW_FAILURE=true
  267. - node_js: "iojs-v1.3"
  268. env: TEST=true ALLOW_FAILURE=true
  269. - node_js: "iojs-v1.2"
  270. env: TEST=true ALLOW_FAILURE=true
  271. - node_js: "iojs-v1.1"
  272. env: TEST=true ALLOW_FAILURE=true
  273. - node_js: "iojs-v1.0"
  274. env: TEST=true ALLOW_FAILURE=true
  275. - node_js: "0.11"
  276. env: TEST=true ALLOW_FAILURE=true
  277. - node_js: "0.9"
  278. env: TEST=true ALLOW_FAILURE=true
  279. - node_js: "0.4"
  280. env: TEST=true ALLOW_FAILURE=true
  281. allow_failures:
  282. - os: osx
  283. - env: TEST=true ALLOW_FAILURE=true