GitLabCI: remove old mono version pipeline

Because it is red (because nuget doesn't accept old TLS connections,
and only newer versions of Mono support newer TLS versions)
This commit is contained in:
Andres G. Aragoneses 2020-09-18 14:50:03 +08:00
parent 90e16c1b1e
commit 652c7d6cbb
2 changed files with 6 additions and 16 deletions

View file

@ -11,18 +11,6 @@ stages:
- build - build
stockmono_build: stockmono_build:
image: ubuntu:18.04
stage: build
script:
# https://askubuntu.com/a/1013396
- DEBIAN_FRONTEND=noninteractive apt install -y mono-complete mono-xbuild fsharp
- mono --version
- curl -o nuget.exe $NUGET_451_URL
- mono nuget.exe restore src/TgSharp.sln
- xbuild src/TgSharp.Core/TgSharp.Core.csproj
stocknewmono_build:
image: ubuntu:20.04 image: ubuntu:20.04
stage: build stage: build
script: script:
@ -35,7 +23,7 @@ stocknewmono_build:
- xbuild src/TgSharp.Core/TgSharp.Core.csproj - xbuild src/TgSharp.Core/TgSharp.Core.csproj
newmono_build: newmono_build:
image: ubuntu:18.04 image: ubuntu:20.04
stage: build stage: build
artifacts: artifacts:
paths: paths:

View file

@ -1,6 +1,8 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -euxo pipefail set -euxo pipefail
source /etc/os-release
# required by apt-key # required by apt-key
apt install -y gnupg2 apt install -y gnupg2
# required by apt-update when pulling from mono-project.com # required by apt-update when pulling from mono-project.com
@ -8,8 +10,8 @@ apt install -y ca-certificates
# taken from http://www.mono-project.com/download/stable/#download-lin # taken from http://www.mono-project.com/download/stable/#download-lin
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
# bionic(=18.04) below works even for 18.10, 19.04 and 19.10 echo "deb https://download.mono-project.com/repo/ubuntu stable-$UBUNTU_CODENAME main" | tee /etc/apt/sources.list.d/mono-official-stable.list
echo "deb https://download.mono-project.com/repo/ubuntu stable-bionic main" | tee /etc/apt/sources.list.d/mono-official-stable.list
apt update apt update
apt install -y mono-devel DEBIAN_FRONTEND=noninteractive apt install -y mono-devel
mono --version mono --version