Skip to content

Commit

Permalink
Remove DEB and RPM packages from CI
Browse files Browse the repository at this point in the history
  • Loading branch information
efoerster committed Aug 22, 2019
1 parent b11008a commit f2ae44b
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 85 deletions.
21 changes: 0 additions & 21 deletions .azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,27 +58,6 @@ jobs:
ver=`echo "$(Build.SourceBranchName)" | cut -c2-`
echo "##vso[task.setvariable variable=version]$ver"
displayName: "Set version variable"
- task: DownloadSecureFile@1
name: gpgKey
inputs:
secureFile: "gpg.key"
displayName: "Download GPG key"
- bash: |
gpg --import $(gpgKey.secureFilePath)
displayName: "Import GPG key"
- bash: |
rpm --define "_gpg_name Eric Förster <[email protected]>" --addsign texlab-x86_64-rhel.rpm/*.rpm
displayName: "Sign RPM package"
- bash: |
curl -T $(Pipeline.Workspace)/texlab-x86_64-debian.deb/*.deb \
-uefoerster:$BINTRAY_API_KEY \
"https://api.bintray.com/content/efoerster/texlab-deb/texlab/$(version)/texlab-x86_64-debian.deb;deb_distribution=stable;deb_component=main;deb_architecture=amd64;publish=1"
curl -T $(Pipeline.Workspace)/texlab-x86_64-rhel.rpm/*.rpm \
-uefoerster:$BINTRAY_API_KEY \
"https://api.bintray.com/content/efoerster/texlab-rpm/texlab/$(version)/texlab-x86_64-rhel.rpm;publish=1"
env:
BINTRAY_API_KEY: $(bintrayKey)
displayName: "Upload to Bintray"
- task: InstallSSHKey@0
inputs:
knownHostsEntry: "$(aurKnownHosts)"
Expand Down
17 changes: 0 additions & 17 deletions .build-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,20 +53,3 @@ steps:
- publish: $(Build.ArtifactStagingDirectory)
artifact: ${{ parameters.archiveFile }}
displayName: "Publish release artifact"
- ${{ if eq(parameters.linux, 'true') }}:
- bash: |
cargo install cargo-deb
cargo deb
mv target/debian/texlab* target/debian/texlab-x86_64-debian.deb
displayName: "Build Debian package"
- publish: target/debian
artifact: texlab-x86_64-debian.deb
displayName: "Publish Debian artifact"
- bash: |
cargo install cargo-rpm
cargo rpm build -v
mv target/release/rpmbuild/RPMS/x86_64/texlab* target/release/rpmbuild/RPMS/x86_64/texlab-x86_64-rhel.rpm
displayName: "Build RHEL package"
- publish: target/release/rpmbuild/RPMS/x86_64
artifact: texlab-x86_64-rhel.rpm
displayName: "Publish RHEL artifact"
31 changes: 0 additions & 31 deletions .rpm/texlab.spec

This file was deleted.

16 changes: 0 additions & 16 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,19 +59,3 @@ harness = false

[profile.release]
lto = true

[package.metadata.deb]
license-file = ["LICENSE", "4"]
extended-description = """\
A cross-platform implementation of the Language Server Protocol \
providing rich cross-editing support for the LaTeX typesetting system."""
depends = "$auto"
section = "tex"
assets = [
["target/release/texlab", "usr/bin/", "755"],
["README.md", "usr/share/doc/texlab/README", "644"],
]

[package.metadata.rpm]
cargo = { buildflags = ["--release"] }
targets = { texlab = { path = "/usr/bin/texlab" } }

0 comments on commit f2ae44b

Please sign in to comment.