diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index f2b5a9d..0000000 --- a/.travis.yml +++ /dev/null @@ -1,114 +0,0 @@ -language: d -dist: bionic - -addons: - apt: - packages: - - libevent-dev - -script: - - ./scripts/ci/travis.sh - -jobs: - allow_failures: - - d: gdc - include: - - stage: test - d: dmd-2.093.0 - env: [FRONTEND=2.093, COVERAGE=true] - - d: dmd-2.089.1,dub - env: [FRONTEND=2.089] - - d: dmd-2.083.1,dub - env: [FRONTEND=2.083] - - d: ldc-1.22.0 - env: [FRONTEND=2.092] - - d: ldc-1.20.0,dub - env: [FRONTEND=2.090] - - stage: deploy - d: ldc-1.22.0,dub - os: osx - addons: - homebrew: - packages: - - gnu-tar - update: true - script: echo "Deploying to GitHub releases ..." && ./scripts/ci/release.sh - deploy: - - provider: releases - file_glob: true - file: bin/dub-*.tar.gz - skip_cleanup: true - api_key: $GH_REPO_TOKEN - on: - tags: true - - d: ldc-1.22.0,dub - script: echo "Deploying to GitHub releases ..." && ./scripts/ci/release.sh - env: [ARCH=32] - addons: - apt: - packages: - - g++-multilib - - libcurl4-openssl-dev:i386 - deploy: - - provider: releases - file_glob: true - file: bin/dub-*.tar.gz - skip_cleanup: true - api_key: $GH_REPO_TOKEN - on: - tags: true - - d: ldc-1.22.0,dub - script: echo "Deploying to GitHub releases ..." && ./scripts/ci/release.sh - deploy: - - provider: releases - file_glob: true - file: bin/dub-*.tar.gz - skip_cleanup: true - api_key: $GH_REPO_TOKEN - on: - tags: true - - d: ldc-1.22.0,dub - script: echo "Deploying to GitHub releases (win32) ..." && ./scripts/ci/release-windows.sh - addons: - apt: - packages: - - p7zip-full - deploy: - - provider: releases - file_glob: true - file: bin/dub-*.zip - skip_cleanup: true - api_key: $GH_REPO_TOKEN - on: - tags: true - - d: ldc-1.22.0,dub - script: echo "Deploying to GitHub releases (win64) ..." && ARCH=64 ./scripts/ci/release-windows.sh - addons: - apt: - packages: - - p7zip-full - deploy: - - provider: releases - file_glob: true - file: bin/dub-*.zip - skip_cleanup: true - api_key: $GH_REPO_TOKEN - on: - tags: true - - stage: update-latest - script: echo "Deploying to GitHub pages ..." && mkdir -p docs && git describe --abbrev=0 --tags > docs/LATEST - deploy: - - provider: pages - skip_cleanup: true - local_dir: docs - github_token: $GH_REPO_TOKEN - on: - tags: true -stages: - - name: test - if: type = pull_request or (type = push and branch = master) - # Until deployment of the release binaries is fixed, always build them - #- name: deploy - #if: type = push and tag =~ ^v\d+\.\d+\.\d+[^-]*\$ # not a pre-release tag - - name: update-latest - if: type = push and tag =~ ^v\d+\.\d+\.\d+[^-]*\$ # not a pre-release tag diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index 9d5e983..0000000 --- a/appveyor.yml +++ /dev/null @@ -1,123 +0,0 @@ -platform: x64 -environment: - matrix: - #- DC: dmd - # DVersion: nightly - # arch: x64 - #- DC: dmd - # DVersion: nightly - # arch: x86 - - DC: dmd - DVersion: beta - arch: x64 - - DC: dmd - DVersion: beta - arch: x86 - - DC: dmd - DVersion: stable - arch: x64 - - DC: dmd - DVersion: 2.086.0 - arch: x86 - - DC: dmd - DVersion: 2.086.0 - arch: x64 - - DC: dmd - DVersion: stable - arch: x86 - - DC: ldc - DVersion: stable - arch: x64 - - DC: ldc - DVersion: 1.15.0 - arch: x64 - -skip_tags: false -branches: - only: - - master - - stable - -install: - - ps: function ResolveLatestDMD - { - $version = $env:DVersion; - if($version -eq "stable") { - $latest = (Invoke-WebRequest "http://downloads.dlang.org/releases/LATEST").toString(); - $url = "http://downloads.dlang.org/releases/2.x/$($latest)/dmd.$($latest).windows.7z"; - }elseif($version -eq "beta") { - $latest = (Invoke-WebRequest "http://downloads.dlang.org/pre-releases/LATEST").toString(); - $latestVersion = $latest.split("-")[0].split("~")[0]; - $url = "http://downloads.dlang.org/pre-releases/2.x/$($latestVersion)/dmd.$($latest).windows.7z"; - }elseif($version -eq "nightly") { - $url = "http://nightlies.dlang.org/dmd-master-2017-05-20/dmd.master.windows.7z" - }else { - $url = "http://downloads.dlang.org/releases/2.x/$($version)/dmd.$($version).windows.7z"; - } - $env:PATH += ";C:\dmd2\windows\bin;"; - return $url; - } - - ps: function ResolveLatestLDC - { - $version = $env:DVersion; - $arch = $env:arch; - if($version -eq "stable") { - $latest = (Invoke-WebRequest "https://ldc-developers.github.io/LATEST").toString().replace("`n","").replace("`r",""); - $url = "https://github.com/ldc-developers/ldc/releases/download/v$($latest)/ldc2-$($latest)-windows-$($arch).7z"; - }elseif($version -eq "beta") { - $latest = (Invoke-WebRequest "https://ldc-developers.github.io/LATEST_BETA").toString().replace("`n","").replace("`r",""); - $url = "https://github.com/ldc-developers/ldc/releases/download/v$($latest)/ldc2-$($latest)-windows-$($arch).7z"; - } else { - $latest = $version; - $url = "https://github.com/ldc-developers/ldc/releases/download/v$($version)/ldc2-$($version)-windows-$($arch).7z"; - } - $env:PATH += ";C:\ldc2-$($latest)-windows-$($arch)\bin"; - $env:DC = "ldc2"; - return $url; - } - - ps: function SetUpDCompiler - { - $env:toolchain = "msvc"; - if($env:DC -eq "dmd"){ - echo "downloading ..."; - $url = ResolveLatestDMD; - echo $url; - Invoke-WebRequest $url -OutFile "c:\dmd.7z"; - echo "finished."; - pushd c:\\; - 7z x dmd.7z > $null; - popd; - } - elseif($env:DC -eq "ldc"){ - echo "downloading ..."; - $url = ResolveLatestLDC; - echo $url; - Invoke-WebRequest $url -OutFile "c:\ldc.zip"; - echo "finished."; - pushd c:\\; - 7z x ldc.zip > $null; - popd; - } - } - - ps: SetUpDCompiler - -build_script: - - ps: if($env:arch -eq "x86"){ - $env:compilersetupargs = "x86"; - $env:Darch = "x86"; - $env:DConf = "m32"; - }elseif($env:arch -eq "x64"){ - $env:compilersetupargs = "amd64"; - $env:Darch = "x86_64"; - $env:DConf = "m64"; - } - - ps: $env:compilersetup = "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall"; - - '"%compilersetup%" %compilersetupargs%' - -test_script: - - echo %PLATFORM% - - echo %Darch% - - echo %DC% - - echo %PATH% - - '%DC% --version' - - dub test --arch=%Darch% --compiler=%DC% diff --git a/build-gdc.sh b/build-gdc.sh deleted file mode 100755 index df0e5ce..0000000 --- a/build-gdc.sh +++ /dev/null @@ -1,25 +0,0 @@ -#!/usr/bin/env bash -set -e - -if [ "$GDC" = "" ]; then - GDC=gdc -fi - -# link against libcurl -LIBS=`pkg-config --libs libcurl 2>/dev/null || echo "-lcurl"` - -# adjust linker flags for gdc command line -LIBS=`echo "$LIBS" | sed 's/^-L/-L-L/; s/ -L/ -L-L/g; s/^-l/-L-l/; s/ -l/ -L-l/g'` - -echo Generating version file... -GITVER=$(git describe) || GITVER=unknown -echo "module dub.version_;" > source/dub/version_.d -echo "enum dubVersion = \"$GITVER\";" >> source/dub/version_.d - -echo Running $GDC... -$GDC -obin/dub -lcurl -w -fversion=DubUseCurl -fversion=DubApplication -Isource $* $LIBS @build-files.txt -echo DUB has been built as bin/dub. -echo -echo You may want to run -echo sudo ln -s $(pwd)/bin/dub /usr/local/bin -echo now. diff --git a/semaphore-ci.sh b/semaphore-ci.sh deleted file mode 100755 index c942ed9..0000000 --- a/semaphore-ci.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/bash - -set -euo pipefail -set -x - -if [ "${D_VERSION:-dmd}" == "gdc" ] ; then - echo "GDC unrelated test failures to be fixed" - exit 0 - - # Use the dub-updating fork of the installer script until https://github.com/dlang/installer/pull/301 is merged - wget https://raw.githubusercontent.com/wilzbach/installer-dub/master/script/install.sh -O install.dub.sh - bash install.dub.sh -a dub - dub_path_activate="$(find $HOME/dlang/*/activate | head -1)" - rm "${dub_path_activate}" - dub_path="$(dirname "$dub_path_activate")" - sudo ln -s "${dub_path}/dub" /usr/bin/dub - - export DMD=gdmd - export DC=gdc - # It's technically ~"2.076", but Ternary doesn't seem to have been ported and Vibe.d seems to depend on this. - # Ternary was added in 2.072: https://dlang.org/phobos/std_typecons.html#.Ternary - # However, the nonet tests is done only for > 2.072 - export FRONTEND=2.072 - - sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test - sudo apt-get update - sudo apt-get install -y gdc-9 - # fetch the dmd-like wrapper - sudo wget https://raw.githubusercontent.com/D-Programming-GDC/GDMD/master/dmd-script -O /usr/bin/gdmd - sudo chmod +x /usr/bin/gdmd - # DUB requires gdmd - sudo ln -s /usr/bin/gdc-9 /usr/bin/gdc - # fake install script and create a fake 'activate' script - mkdir -p ~/dlang/gdc-9 - echo "deactivate(){ echo;}" > ~/dlang/gdc-9/activate - -else - . $(curl --connect-timeout 5 --max-time 10 --retry 5 --retry-delay 1 --retry-max-time 60 https://dlang.org/install.sh | bash -s "$D_VERSION" -a) -fi - -./scripts/ci/travis.sh