-
-
Notifications
You must be signed in to change notification settings - Fork 669
Allow to run the DMD testsuite on hardened systems #7420
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,30 +1,43 @@ | ||
| version: 2 | ||
| jobs: | ||
| build: | ||
| no_pic: | ||
| working_directory: ~/dmd | ||
| docker: | ||
| - image: circleci/node:4.8.2 | ||
| parallelism: 2 | ||
| branches: | ||
| ignore: | ||
| - dmd-1.x | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This didn't work with the new workflow setting and AFAICT is only required for the respective branch anyways. |
||
| steps: | ||
| - checkout | ||
| - run: | ||
| command: ./.circleci/run.sh install-deps | ||
| name: Install DMD | ||
| - run: | ||
| command: sudo apt-get update && sudo apt-get install gdb | ||
| name: Install GDB | ||
| name: Install dependencies | ||
| - run: | ||
| # needs to be a separate step, s.t. `run.sh` gets updated too | ||
| command: ./.circleci/run.sh setup-repos | ||
| name: Clone DRuntime & Phobos | ||
| name: Merge with upstream + clone DRuntime & Phobos | ||
| - run: | ||
| command: ./.circleci/run.sh coverage | ||
| name: Run testsuite with -cov | ||
| command: ./.circleci/run.sh all | ||
| name: Run all | ||
| pic: | ||
| working_directory: ~/dmd | ||
| docker: | ||
| # See: https://github.com/wilzbach/dlang-docker/blob/master/circleci/dlang.docker | ||
| - image: dlang2/dmd-circleci:2.078.0 | ||
| steps: | ||
| - checkout | ||
| - run: | ||
| # this is needed to "fix" the Docker permission errors - see https://github.com/dlang/dmd/pull/7579 | ||
| command: sudo ls -l /dlang/dmd-2.078.0/linux && sudo ls -l /dlang/dmd-2.078.0/src | ||
| name: Test Docker image | ||
| - run: | ||
| command: ./.circleci/run.sh check-clean-git | ||
| name: Check for temporary files generated by the test suite | ||
| # needs to be a separate step, s.t. `run.sh` gets updated too | ||
| command: ./.circleci/run.sh setup-repos | ||
| name: Merge with upstream + clone DRuntime & Phobos | ||
| - run: | ||
| command: ./.circleci/run.sh codecov | ||
| name: Upload coverage files to CodeCov | ||
| command: ./.circleci/run.sh all | ||
| name: Run all | ||
| workflows: | ||
| version: 2 | ||
| all: | ||
| jobs: | ||
| - pic | ||
| - no_pic | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -178,6 +178,7 @@ else | |
| endif | ||
| export DFLAGS | ||
| endif | ||
| REQUIRED_ARGS+=$(PIC_FLAG) | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. After the other PRs that's all that's needed to fix the test suite for |
||
|
|
||
| ifeq ($(OS),osx) | ||
| ifeq ($(MODEL),64) | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could replace this with a D Docker image that doesn't require
-fPIC, e.g. https://github.com/wilzbach/dlang-docker/blob/master/circleci/dlang.docker built for Ubuntu 14.04, but this should be more than fine for now (it's the existing status quo after all).