Skip to content

Commit 2ba1aae

Browse files
authored
Merge pull request #5930 from wilzbach/circle
Upgrade to CircleCi 2.0 merged-on-behalf-of: Petar Kirov <[email protected]>
2 parents 81c50e3 + 53e9e37 commit 2ba1aae

File tree

5 files changed

+33
-20
lines changed

5 files changed

+33
-20
lines changed

.circleci/config.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
version: 2
2+
jobs:
3+
build:
4+
working_directory: ~/phobos
5+
docker:
6+
- image: circleci/node:4.8.2
7+
parallelism: 1
8+
steps:
9+
- checkout
10+
- run:
11+
command: ./.circleci/run.sh install-deps
12+
name: Install DMD
13+
- run:
14+
command: ./.circleci/run.sh setup-repos
15+
name: Clone DMD & DRuntime
16+
- run:
17+
command: sudo apt-get update && sudo apt-get install -y gdb
18+
name: Install gdb
19+
- run:
20+
command: ./.circleci/run.sh style_lint
21+
name: Run code style & linter
22+
- run:
23+
command: ./.circleci/run.sh publictests
24+
name: Run all public unittests
25+
- run:
26+
command: ./.circleci/run.sh coverage
27+
name: Run Phobos testsuite with -cov
28+
- run:
29+
command: bash <(curl -s https://codecov.io/bash)
30+
name: Upload coverage files to CodeCov
File renamed without changes.

circle.yml

Lines changed: 0 additions & 17 deletions
This file was deleted.

posix.mak

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ style_lint: dscanner $(LIB)
589589
done
590590

591591
@echo "Check that Ddoc runs without errors"
592-
$(DMD) $(DFLAGS) -defaultlib= -debuglib= $(LIB) -w -D -Df/dev/null -main -c -o- $$(find etc std -type f -name '*.d') 2>&1 | grep -v "Deprecation:"; test $$? -eq 1
592+
$(DMD) $(DFLAGS) -defaultlib= -debuglib= $(LIB) -w -D -Df/dev/null -main -c -o- $$(find etc std -type f -name '*.d') 2>&1
593593

594594
################################################################################
595595
# Check for missing imports in public unittest examples.

std/range/primitives.d

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1411,7 +1411,7 @@ template hasLength(R)
14111411
}
14121412

14131413
// test combinations which are invalid on some platforms
1414-
unittest
1414+
@safe unittest
14151415
{
14161416
struct A { ulong length; }
14171417
struct B { @property uint length() { return 0; } }
@@ -1429,7 +1429,7 @@ unittest
14291429
}
14301430

14311431
// test combinations which are invalid on all platforms
1432-
unittest
1432+
@safe unittest
14331433
{
14341434
struct A { long length; }
14351435
struct B { int length; }

0 commit comments

Comments
 (0)