Skip to content

Commit bec3f9b

Browse files
committed
Move test runs from Travis to SemaphoreCI
1 parent 0e63943 commit bec3f9b

4 files changed

Lines changed: 63 additions & 2 deletions

File tree

.travis.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
language: d
22
d:
33
- dmd
4-
- gdc
54
- ldc
65

76
script:
@@ -18,7 +17,6 @@ addons:
1817

1918
env:
2019
- MODEL=32
21-
- MODEL=64
2220

2321
matrix:
2422
include:

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ DMD
66
[![Code coverage](https://img.shields.io/codecov/c/github/dlang/dmd.svg?maxAge=86400)](https://codecov.io/gh/dlang/dmd)
77
[![license](https://img.shields.io/github/license/dlang/dmd.svg)](https://github.com/dlang/dmd/blob/master/LICENSE.txt)
88

9+
[![CircleCI](https://circleci.com/gh/dlang/dmd/tree/master.svg?style=svg)](https://circleci.com/gh/dlang/dmd/tree/master)
10+
[![Build Status](https://semaphoreci.com/api/v1/cybershadow/dmd/branches/master/badge.svg)](https://semaphoreci.com/cybershadow/dmd)
11+
912
DMD is the reference compiler for the D programming language.
1013

1114
To report a problem or browse the list of open bugs, please visit the

semaphoreci.sh

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
#!/bin/bash
2+
3+
set -uexo pipefail
4+
5+
################################################################################
6+
# Set by the Semaphore job runner
7+
################################################################################
8+
9+
export MODEL=${MODEL:-64} # can be {32,64}
10+
export DMD=${DMD:-dmd} # can be {dmd,ldc,gdc}
11+
12+
################################################################################
13+
# Static variables or inferred from Semaphore
14+
# See also: https://semaphoreci.com/docs/available-environment-variables.html
15+
################################################################################
16+
17+
export N=4
18+
export OS_NAME=linux
19+
export BRANCH=$BRANCH_NAME
20+
export FULL_BUILD="${PULL_REQUEST_NUMBER+false}"
21+
22+
source ci.sh
23+
24+
################################################################################
25+
# Always source a DMD instance
26+
################################################################################
27+
28+
source "$(activate_d "$DMD")"
29+
30+
################################################################################
31+
# Define commands
32+
################################################################################
33+
34+
case $1 in
35+
setup) setup_repos ;;
36+
testsuite) testsuite ;;
37+
esac

travis.sh

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/bin/bash
2+
3+
set -uexo pipefail
4+
5+
################################################################################
6+
# Static variables or inferred from Travis
7+
# https://docs.travis-ci.com/user/environment-variables/
8+
################################################################################
9+
10+
export N=2
11+
export OS="${TRAVIS_OS_NAME}"
12+
export MODEL="${MODEL}"
13+
export BRANCH="${TRAVIS_BRANCH}"
14+
export FULL_BUILD=false
15+
16+
source ci.sh
17+
18+
################################################################################
19+
# Commands
20+
################################################################################
21+
22+
setup_repos
23+
testsuite

0 commit comments

Comments
 (0)