Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.
/ druntime Public archive
Merged
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
24 changes: 24 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
version: 2
jobs:
build:
working_directory: ~/druntime
docker:
- image: circleci/node:4.8.2
parallelism: 1
steps:
- checkout
- run:
command: ./.circleci/run.sh install-deps
name: Install DMD
- run:
command: ./.circleci/run.sh setup-repos
name: Clone DMD
- run:
command: ./.circleci/run.sh style
name: Check code style
- run:
command: ./.circleci/run.sh coverage
name: Run DRuntime testsuite with -cov
- run:
command: ./.circleci/run.sh codecov
name: Upload coverage files to CodeCov
5 changes: 5 additions & 0 deletions circleci.sh → .circleci/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,10 @@ setup_repos() {
done
}

style() {
make -f posix.mak style
}

coverage() {
# load environment for bootstrap compiler
source "$(CURL_USER_AGENT=\"$CURL_USER_AGENT\" bash ~/dlang/install.sh dmd-$HOST_DMD_VER --activate)"
Expand All @@ -112,6 +116,7 @@ codecov()
case $1 in
install-deps) install_deps ;;
setup-repos) setup_repos ;;
style) style ;;
coverage) coverage ;;
codecov) codecov ;;
esac
16 changes: 0 additions & 16 deletions circle.yml

This file was deleted.