mirror of
https://github.com/kennethreitz/heroku-buildpack-python.git
synced 2026-06-05 15:00:19 +00:00
aa8a0f43bb
This change (along with #1021, which skips an unnecessary docker build) reduces the wall clock time from ~22 minutes to ~6 minutes. Even with the additional overhead from increased parallelism, the combined job duration (~50 minutes) has not increased due to the other time savings. Changes: - for the unit tests, each stack is now tested in its own job and so tested in parallel - the use of Travis stages has been removed, since by design it blocks later tasks on earlier stages having completed - reducing parallelism unnecessarily for this use case - all jobs except for the Hatchet job now use Travis' `minimal` image, and no longer install redundant Ruby + bundler - the `sudo: {required,false}` references have been removed, since Travis no longer supports its non-sudo container infrastructure so ignores that option Fixes #1018. [skip changelog]
45 lines
1.4 KiB
YAML
45 lines
1.4 KiB
YAML
language: minimal
|
|
dist: bionic
|
|
branches:
|
|
only:
|
|
- master
|
|
|
|
script:
|
|
- make test STACK="${STACK}" TEST_CMD="${TEST_CMD}"
|
|
|
|
jobs:
|
|
include:
|
|
- name: Bash linting (shellcheck)
|
|
script: make check
|
|
- name: Hatchet integration tests
|
|
if: env(TRAVIS_PULL_REQUEST_SLUG) = env(TRAVIS_REPO_SLUG)
|
|
language: ruby
|
|
rvm:
|
|
- 2.6.6
|
|
before_script:
|
|
- gem install bundler -v 1.16.2
|
|
script:
|
|
- bundle exec hatchet ci:setup
|
|
- PARALLEL_SPLIT_TEST_PROCESSES=11 bundle exec parallel_split_test spec/hatchet/
|
|
|
|
env:
|
|
jobs:
|
|
- STACK=cedar-14 TEST_CMD=test/run-deps
|
|
- STACK=cedar-14 TEST_CMD=test/run-versions
|
|
- STACK=cedar-14 TEST_CMD=test/run-features
|
|
|
|
- STACK=heroku-16 TEST_CMD=test/run-deps
|
|
- STACK=heroku-16 TEST_CMD=test/run-versions
|
|
- STACK=heroku-16 TEST_CMD=test/run-features
|
|
|
|
- STACK=heroku-18 TEST_CMD=test/run-deps
|
|
- STACK=heroku-18 TEST_CMD=test/run-versions
|
|
- STACK=heroku-18 TEST_CMD=test/run-features
|
|
global:
|
|
- HATCHET_RETRIES=3
|
|
- IS_RUNNING_ON_CI=true
|
|
- HATCHET_APP_LIMIT=80
|
|
- HATCHET_DEPLOY_STRATEGY=git
|
|
- secure: yjtlPE5FbVxTKnjUy/tZUBgSEf4qADD3QOxtgziuid73S0U/1IEXlMGFULsQzIjtlHKmHeywZqpVVEpthIH4RuT7uoX1Pb7SSM/g0T8fT3VoEFbFK1uYl0oZQbUS4Klxv9tPiumj8if3m6ULEGIz1X0wZcMOC0tMLwVCnwmap0E=
|
|
- secure: ZeFTHWwnpIKE9nAqs88ocmiQh7bKce84lilGm5J23nf3N6V4wNyLwqlkvsM008WGBCaOg9AUx7ZunasT0ANsR5gLP3eV2UUg7ILdRgV2Gy13eNRFheC4PHdN92RqQ3aKoqlIv2K999xlhVjod0NzhkQQXB6PddfQINbuU7ks6As=
|