mirror of
https://github.com/dlang/dmd.git
synced 2025-04-25 20:50:41 +03:00
Move test runs from Travis to SemaphoreCI
This commit is contained in:
parent
2666f3a699
commit
3ec97388fa
4 changed files with 65 additions and 2 deletions
|
@ -1,11 +1,12 @@
|
|||
language: d
|
||||
d:
|
||||
- dmd
|
||||
- gdc
|
||||
- ldc
|
||||
|
||||
script:
|
||||
- DMD_BIN="$DMD"
|
||||
- deactivate # deactivate d compiler
|
||||
- export DMD="$DMD_BIN"
|
||||
- ./travis.sh
|
||||
|
||||
sudo: false
|
||||
|
@ -18,7 +19,6 @@ addons:
|
|||
|
||||
env:
|
||||
- MODEL=32
|
||||
- MODEL=64
|
||||
|
||||
matrix:
|
||||
include:
|
||||
|
|
|
@ -6,6 +6,9 @@ DMD
|
|||
[](https://codecov.io/gh/dlang/dmd)
|
||||
[](https://github.com/dlang/dmd/blob/master/LICENSE.txt)
|
||||
|
||||
[](https://circleci.com/gh/dlang/dmd/tree/master)
|
||||
[](https://semaphoreci.com/cybershadow/dmd)
|
||||
|
||||
DMD is the reference compiler for the D programming language.
|
||||
|
||||
To report a problem or browse the list of open bugs, please visit the
|
||||
|
|
37
semaphoreci.sh
Executable file
37
semaphoreci.sh
Executable file
|
@ -0,0 +1,37 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -uexo pipefail
|
||||
|
||||
################################################################################
|
||||
# Set by the Semaphore job runner
|
||||
################################################################################
|
||||
|
||||
export MODEL=${MODEL:-64} # can be {32,64}
|
||||
export DMD=${DMD:-dmd} # can be {dmd,ldc,gdc}
|
||||
|
||||
################################################################################
|
||||
# Static variables or inferred from Semaphore
|
||||
# See also: https://semaphoreci.com/docs/available-environment-variables.html
|
||||
################################################################################
|
||||
|
||||
export N=4
|
||||
export OS_NAME=linux
|
||||
export BRANCH=$BRANCH_NAME
|
||||
export FULL_BUILD="${PULL_REQUEST_NUMBER+false}"
|
||||
|
||||
source ci.sh
|
||||
|
||||
################################################################################
|
||||
# Always source a DMD instance
|
||||
################################################################################
|
||||
|
||||
source "$(activate_d "$DMD")"
|
||||
|
||||
################################################################################
|
||||
# Define commands
|
||||
################################################################################
|
||||
|
||||
case $1 in
|
||||
setup) setup_repos ;;
|
||||
testsuite) testsuite ;;
|
||||
esac
|
23
travis.sh
Executable file
23
travis.sh
Executable file
|
@ -0,0 +1,23 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -uexo pipefail
|
||||
|
||||
################################################################################
|
||||
# Static variables or inferred from Travis
|
||||
# https://docs.travis-ci.com/user/environment-variables/
|
||||
################################################################################
|
||||
|
||||
export N=2
|
||||
export OS_NAME="${TRAVIS_OS_NAME}"
|
||||
export MODEL="${MODEL}"
|
||||
export BRANCH="${TRAVIS_BRANCH}"
|
||||
export FULL_BUILD=false
|
||||
|
||||
source ci.sh
|
||||
|
||||
################################################################################
|
||||
# Commands
|
||||
################################################################################
|
||||
|
||||
setup_repos
|
||||
testsuite
|
Loading…
Add table
Add a link
Reference in a new issue