Skip to content
Permalink
Browse files

Run python-build directly from make to avoid job cancellation after 1…

…0 min no output on travis-ci.org
  • Loading branch information...
yyuu committed Apr 8, 2019
1 parent e7ed7fa commit 02a4b33b621b5dcde863184c3636167cac47dcbb
Showing with 11 additions and 26 deletions.
  1. +0 −3 .travis.yml
  2. +11 −2 Makefile
  3. +0 −21 plugins/python-build/test/build/test.bats
@@ -36,9 +36,6 @@ install: git clone --depth 1 https://github.com/bats-core/bats-core.git bats
# Default for auto-generated jobs.
script: make test-build

after_script: |
cat "$(ls -tr ${TMPDIR:-/tmp}/python-build.*.log | tail -1)"
jobs:
include:
# Shell-based tests should execute every time.
@@ -8,8 +8,17 @@ test: bats
PATH="./bats/bin:$$PATH" test/run
cd plugins/python-build && $(PWD)/bats/bin/bats $${CI:+--tap} test

test-build: bats
cd plugins/python-build && $(PWD)/bats/bin/bats $${CI:+--tap} test/build
PYTHON_BUILD_ROOT := $(CURDIR)/plugins/python-build
PYTHON_BUILD_OPTS ?= --verbose
PYTHON_BUILD_VERSION ?= 3.8-dev
PYTHON_BUILD_TEST_PREFIX ?= $(PYTHON_BUILD_ROOT)/test/build/tmp/dist

test-build:
$(PYTHON_BUILD_ROOT)/bin/python-build $(PYTHON_BUILD_OPTS) $(PYTHON_BUILD_VERSION) $(PYTHON_BUILD_TEST_PREFIX)
[ -e $(PYTHON_BUILD_TEST_PREFIX)/bin/python ]
$(PYTHON_BUILD_TEST_PREFIX)/bin/python -V
[ -e $(PYTHON_BUILD_TEST_PREFIX)/bin/pip ]
$(PYTHON_BUILD_TEST_PREFIX)/bin/pip -V

bats:
git clone --depth 1 https://github.com/bats-core/bats-core.git bats

This file was deleted.

Oops, something went wrong.

0 comments on commit 02a4b33

Please sign in to comment.
You can’t perform that action at this time.