Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

82 rader
1.7 KiB

  1. # Two types of tests:
  2. #
  3. # 1. shell tests run using bats
  4. # 2. build tests also run using bats
  5. #
  6. # Shell tests are run unconditionally on Linux (see jobs.include).
  7. #
  8. # Build tests can be skipped by starting the commit message with
  9. # '[skip build]'.
  10. #
  11. # Build tests are run on platforms generated from all combinations
  12. # of keys below.
  13. language: c
  14. os:
  15. - linux
  16. - osx
  17. dist:
  18. - xenial
  19. # https://docs.travis-ci.com/user/reference/osx/#macos-version
  20. osx_image:
  21. - xcode9.4.1
  22. - xcode10.3
  23. - xcode11.3
  24. env:
  25. - PYTHON_BUILD_VERSION=3.8.0
  26. - PYTHON_BUILD_VERSION=3.7.5
  27. before_install:
  28. - date +%Y-%m-%dT%H:%M:%S
  29. install: git clone --depth 1 --branch v1.2.0 https://github.com/bats-core/bats-core.git bats
  30. # Default for auto-generated jobs.
  31. script: make test-build
  32. jobs:
  33. include:
  34. # Shell-based tests should execute every time.
  35. - stage: test shell
  36. script: make test
  37. env: PYENV_NATIVE_EXT=1
  38. after_script: []
  39. os: linux
  40. - stage: test shell
  41. script: make test
  42. env: PYENV_NATIVE_EXT=
  43. after_script: []
  44. os: linux
  45. exclude:
  46. # For each osx_image but one there should be an entry in the exclude
  47. # list, to prevent duplicate Linux builds.
  48. - os: linux
  49. osx_image: xcode9.4
  50. - os: linux
  51. osx_image: xcode10
  52. allow_failures:
  53. - env: PYTHON_BUILD_VERSION=3.8.0
  54. stages:
  55. - test shell
  56. - name: test
  57. if: NOT (commit_message =~ /^\[skip build\]/)
  58. # Default
  59. notifications:
  60. email:
  61. on_success: never
  62. deploy:
  63. provider: releases
  64. api_key:
  65. secure: FLWevL09KYp7V1SjJUNEdWzuomuocXwNvPr1DSAFH7mmrjKTtjzwrjINAthSqzjlDrs5B//P47l1VLyHp5byEzy673W+bOmEg8swmqc7E9FrHLRyEByd/yca3DzkZgXEXgGdY/cl7tHhM4V2fYKEgAIWbFV+takmTFMK4WkEtNg=
  66. on:
  67. repo: pyenv/pyenv
  68. tags: true