commit
3cdc2467bd
8
.github/workflows/ci-test.yml
vendored
8
.github/workflows/ci-test.yml
vendored
@ -10,7 +10,7 @@ on:
|
||||
|
||||
jobs:
|
||||
docker:
|
||||
timeout-minutes: 10
|
||||
timeout-minutes: 40
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
@ -26,6 +26,12 @@ jobs:
|
||||
- name: Run tests
|
||||
run: docker-compose -f dist/ci/docker-compose.yml run test
|
||||
|
||||
- name: Submit coverage report to Codecov
|
||||
uses: codecov/codecov-action@v1.0.12
|
||||
with:
|
||||
fail_ci_if_error: true
|
||||
|
||||
- name: Stop containers
|
||||
if: always()
|
||||
run: docker-compose -f dist/ci/docker-compose.yml down
|
||||
|
||||
|
27
.travis.yml
27
.travis.yml
@ -1,27 +0,0 @@
|
||||
language: bash
|
||||
sudo: required
|
||||
services:
|
||||
- docker
|
||||
|
||||
script:
|
||||
- sed -i -e "s,../..:,$PWD:," dist/ci/docker-compose.yml
|
||||
- docker-compose -f dist/ci/docker-compose.yml run flaker
|
||||
- for var in TRAVIS_BRANCH TRAVIS_JOB_ID TRAVIS_PULL_REQUEST; do echo "$var=${!var}"; done > travis.settings
|
||||
- docker-compose -f dist/ci/docker-compose.yml run test
|
||||
|
||||
before_install:
|
||||
- >
|
||||
if [ "$TRAVIS_OS_NAME" = "linux" ]; then
|
||||
# Ensure that Travis uses the latest version of Docker.
|
||||
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
|
||||
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
|
||||
sudo apt-get update
|
||||
sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-ce
|
||||
fi
|
||||
|
||||
notifications:
|
||||
email:
|
||||
recipients:
|
||||
# Avoid spam from forks by using secure value that is only available in
|
||||
# main project (see travis-ci/travis-ci#5063).
|
||||
- secure: "CpMzZ1W2x9KCCsrWiYXy8PVfR8vJfuR6ewm/oui7F/hCQ736YHbtQpCbC7GjVoDNpsnWc0XbvFjOl0ehwFBRo1FM1ejy4Zc+XdZSgVFvJ6zUHW/S7uxBZ3YuC07YCzQnHIHh0TCFkFK9GCw0lrcPpsjgneux+C8JQ6tz16H5AmA="
|
10
dist/ci/docker-compose-test.sh
vendored
10
dist/ci/docker-compose-test.sh
vendored
@ -14,8 +14,8 @@ done
|
||||
|
||||
cd /code
|
||||
for file in tests/*_tests.py; do
|
||||
if test -f /code/travis.settings; then
|
||||
COVER_ARGS="--with-coverage --cover-package=. --cover-inclusive"
|
||||
if ! test -f /code/.without-coverage; then
|
||||
COVER_ARGS="--with-coverage --cover-xml --cover-package=. --cover-inclusive"
|
||||
fi
|
||||
echo "running tests from $file..."
|
||||
run_as_tester nosetests $COVER_ARGS -c .noserc -s $file
|
||||
@ -23,9 +23,3 @@ done
|
||||
|
||||
set -x
|
||||
|
||||
if test -f /code/travis.settings; then
|
||||
source /code/travis.settings
|
||||
# ignore if coveralls was not setup for the repo/branch
|
||||
run_as_tester TRAVIS_JOB_ID=$TRAVIS_JOB_ID TRAVIS_BRANCH=$TRAVIS_BRANCH TRAVIS_PULL_REQUEST=$TRAVIS_PULL_REQUEST TRAVIS=yes coveralls || true
|
||||
fi
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user