Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

revive dead CI script, remove obsolete calls #2572

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ jobs:
if: runner.os != 'Windows'
env:
COVERAGE: false
CI_DC: ${{ matrix.dc }}
CI_OS: ${{ matrix.os }}
# The value doesn't matter as long as it's > 2.087
FRONTEND: 2.095.0
run: |
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Package and build manager for [D](http://dlang.org/) applications and libraries.

There is a central [package registry](https://github.com/dlang/dub-registry/) located at <http://code.dlang.org>.

[![GitHub tag](https://img.shields.io/github/tag/dlang/dub.svg?maxAge=86400)](#) [![Coverage Status](https://coveralls.io/repos/dlang/dub/badge.svg)](https://coveralls.io/r/dlang/dub)
[![GitHub tag](https://img.shields.io/github/tag/dlang/dub.svg?maxAge=86400)](#)
[![Buildkite](https://badge.buildkite.com/c54d71c42284a042b9d578e28e093dff35f20cc8528319b1b6.svg?branch=master)](https://buildkite.com/dlang/dub)

## Introduction
Expand Down
22 changes: 2 additions & 20 deletions scripts/ci/travis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,28 +33,10 @@ else
fi

## Checks that only need to be done once per CI run
## Here the `COVERAGE` variable is abused for this purpose,
## as it's only defined once in the whole Travis matrix
if [ "$COVERAGE" = true ]; then
# run tests with different compilers
DUB=`pwd`/bin/dub DC=${DC} test/run-unittest.sh
clean

export FRONTEND=2.077
source $(~/dlang/install.sh ldc-1.7.0 --activate)
DUB=`pwd`/bin/dub DC=${DC} test/run-unittest.sh
deactivate
clean

export FRONTEND=2.068
source $(~/dlang/install.sh gdc-4.8.5 --activate)
DUB=`pwd`/bin/dub DC=${DC} test/run-unittest.sh
deactivate

## We choose to run them only on ldc-latest
if [[ "$CI_DC" == "ldc-latest" && "$CI_OS" =~ ^ubuntu.* ]]; then
# check for trailing whitespace
find . -type f -name '*.d' -exec grep -Hn "[[:blank:]]$" {} \;
# check that the man page generation still works
source $(~/dlang/install.sh dmd --activate)
source $(~/dlang/install.sh dub --activate)
dub --single -v scripts/man/gen_man.d
fi