chore(misc): remove legacy ci folder
This commit is contained in:
parent
5b21c9490e
commit
291bec95f7
|
@ -1,11 +0,0 @@
|
|||
steps:
|
||||
- script: |
|
||||
cargo build --release
|
||||
cd target/release/
|
||||
tar czf "espanso-linux.tar.gz" espanso
|
||||
cd ../..
|
||||
cp target/release/espanso-*.gz .
|
||||
sha256sum espanso-*.gz | awk '{ print $1 }' > espanso-linux-sha256.txt
|
||||
ls -la
|
||||
displayName: "Cargo build and packaging for Linux"
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
steps:
|
||||
- task: UsePythonVersion@0
|
||||
inputs:
|
||||
versionSpec: '3.7'
|
||||
addToPath: true
|
||||
|
||||
- script: |
|
||||
python --version
|
||||
python -m pip install toml click
|
||||
displayName: Installing python dependencies
|
||||
|
||||
- script: |
|
||||
set -e
|
||||
python packager.py build
|
||||
cp target/packager/mac/espanso-*.gz .
|
||||
cp target/packager/mac/espanso-*.txt .
|
||||
cp target/packager/mac/espanso.rb .
|
||||
ls -la
|
||||
displayName: "Cargo build and packaging for MacOS"
|
|
@ -1,18 +0,0 @@
|
|||
steps:
|
||||
- task: UsePythonVersion@0
|
||||
inputs:
|
||||
versionSpec: '3.7'
|
||||
addToPath: true
|
||||
|
||||
- script: |
|
||||
python --version
|
||||
python -m pip install toml click
|
||||
displayName: Installing python dependencies
|
||||
|
||||
- script: |
|
||||
python packager.py build
|
||||
copy "target\\packager\\win\\espanso-win-installer.exe" "espanso-win-installer.exe"
|
||||
copy "target\\packager\\win\\espanso-win-installer-sha256.txt" "espanso-win-installer-sha256.txt"
|
||||
dir
|
||||
displayName: "Build and packaging for Windows"
|
||||
|
|
@ -1,36 +0,0 @@
|
|||
parameters:
|
||||
github:
|
||||
isPreRelease: false
|
||||
repositoryName: '$(Build.Repository.Name)'
|
||||
gitHubConnection: "MyGithubConnection"
|
||||
dependsOn: []
|
||||
displayName: "Release to github"
|
||||
|
||||
steps:
|
||||
- script: |
|
||||
VER=$(cat Cargo.toml| grep version -m 1 | awk -F '"' '{ print $2 }')
|
||||
echo '##vso[task.setvariable variable=vers]'v$VER
|
||||
condition: not(eq(variables['Agent.OS'], 'Windows_NT'))
|
||||
displayName: Obtain version from Cargo.toml on Unix
|
||||
|
||||
- powershell: |
|
||||
Select-String -Path "Cargo.toml" -Pattern "version" | Select-Object -First 1 -outvariable v
|
||||
$vv = [regex]::match($v, '"([^"]+)"').Groups[1].Value
|
||||
echo "##vso[task.setvariable variable=vers]v$vv"
|
||||
condition: eq(variables['Agent.OS'], 'Windows_NT')
|
||||
displayName: Obtain version from Cargo.toml on Windows
|
||||
|
||||
- task: GitHubRelease@0
|
||||
displayName: Create GitHub release
|
||||
inputs:
|
||||
gitHubConnection: ${{ parameters.github.gitHubConnection }}
|
||||
tagSource: manual
|
||||
title: '$(vers)'
|
||||
tag: '$(vers)'
|
||||
assetUploadMode: replace
|
||||
action: edit
|
||||
assets: 'espanso-*'
|
||||
addChangeLog: false
|
||||
repositoryName: ${{ parameters.github.repositoryName }}
|
||||
isPreRelease: ${{ parameters.github.isPreRelease }}
|
||||
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
|
|
@ -1,35 +0,0 @@
|
|||
# defaults for any parameters that aren't specified
|
||||
parameters:
|
||||
rust_version: stable
|
||||
|
||||
steps:
|
||||
# Linux and macOS.
|
||||
- script: |
|
||||
set -e
|
||||
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain $RUSTUP_TOOLCHAIN
|
||||
echo "##vso[task.setvariable variable=PATH;]$PATH:$HOME/.cargo/bin"
|
||||
env:
|
||||
RUSTUP_TOOLCHAIN: ${{parameters.rust_version}}
|
||||
displayName: "Install rust (*nix)"
|
||||
condition: not(eq(variables['Agent.OS'], 'Windows_NT'))
|
||||
# Windows.
|
||||
- script: |
|
||||
curl -sSf -o rustup-init.exe https://win.rustup.rs
|
||||
rustup-init.exe -y --default-toolchain %RUSTUP_TOOLCHAIN% --default-host x86_64-pc-windows-msvc
|
||||
set PATH=%PATH%;%USERPROFILE%\.cargo\bin
|
||||
echo "##vso[task.setvariable variable=PATH;]%PATH%;%USERPROFILE%\.cargo\bin"
|
||||
env:
|
||||
RUSTUP_TOOLCHAIN: ${{parameters.rust_version}}
|
||||
displayName: "Install rust (windows)"
|
||||
condition: eq(variables['Agent.OS'], 'Windows_NT')
|
||||
# Install additional components:
|
||||
- ${{ each component in parameters.components }}:
|
||||
- script: rustup component add ${{ component }}
|
||||
|
||||
# All platforms.
|
||||
- script: |
|
||||
rustup -V
|
||||
rustup component list --installed
|
||||
rustc -Vv
|
||||
cargo -V
|
||||
displayName: Query rust and cargo versions
|
|
@ -1,22 +0,0 @@
|
|||
steps:
|
||||
- task: InstallSSHKey@0
|
||||
inputs:
|
||||
knownHostsEntry: "github.com ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ=="
|
||||
sshPublicKey: "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCsB9zcHN84/T5URAsfIpb52HnJl2kUK7WWXyV9pFXaO6yz722JxzVq56J3TTrcUCDhM3DKSGKivB6n/tmLw4mefcY3t7kh8puAtaNrNnB4TWqVPFHZtnpYuYslp1rM92r7Bz1FHfVfsDZxqSWlGU/lp0gNEEgXbr2PCExbCh3TGTsKePARhMAtPEvyEZk1+8uA/HvUTjhuDp7P+BbejAsqtgVF0QoEvqDE5af8DZY6+i1cHRgwBYgSnOus8FHsZUGMyAJQtb+dD7imGw/nzokPJzbmQJwQetyhp52CfThpAm12EFtIU43imb8nndlVAmsIHF6czbmI5LP3U0UcTLct freddy@freddy-Z97M-DS3H"
|
||||
sshKeySecureFile: "azuressh"
|
||||
|
||||
- script: |
|
||||
set -ex
|
||||
cat ~/.ssh/known_hosts
|
||||
git config --global user.email "federicoterzi96@gmail.com"
|
||||
git config --global user.email "Federico Terzi"
|
||||
VER=$(cat Cargo.toml| grep version -m 1 | awk -F '"' '{ print $2 }')
|
||||
git clone git@github.com:federico-terzi/homebrew-espanso.git
|
||||
rm homebrew-espanso/Formula/espanso.rb
|
||||
cp espanso.rb homebrew-espanso/Formula/espanso.rb
|
||||
cd homebrew-espanso
|
||||
git add -A
|
||||
git commit -m "Update to version: $VER"
|
||||
git push
|
||||
displayName: "Publishing to Homebrew"
|
||||
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
|
21
ci/test.yml
21
ci/test.yml
|
@ -1,21 +0,0 @@
|
|||
parameters:
|
||||
rust_version: stable
|
||||
|
||||
steps:
|
||||
- script: |
|
||||
echo Master check
|
||||
displayName: Master branch check
|
||||
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
|
||||
|
||||
- template: install-rust.yml
|
||||
|
||||
- script: |
|
||||
set -e
|
||||
cargo test --release
|
||||
displayName: Cargo tests on Unix
|
||||
condition: not(eq(variables['Agent.OS'], 'Windows_NT'))
|
||||
|
||||
- script: |
|
||||
cargo test --release
|
||||
displayName: Cargo tests on Windows
|
||||
condition: eq(variables['Agent.OS'], 'Windows_NT')
|
|
@ -1,38 +0,0 @@
|
|||
FROM ubuntu:18.04
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y libssl-dev \
|
||||
libxdo-dev libxtst-dev libx11-dev \
|
||||
wget git cmake build-essential pkg-config
|
||||
|
||||
ENV RUSTUP_HOME=/usr/local/rustup \
|
||||
CARGO_HOME=/usr/local/cargo \
|
||||
PATH=/usr/local/cargo/bin:$PATH \
|
||||
RUST_VERSION=1.41.0
|
||||
|
||||
RUN set -eux; \
|
||||
dpkgArch="$(dpkg --print-architecture)"; \
|
||||
case "${dpkgArch##*-}" in \
|
||||
amd64) rustArch='x86_64-unknown-linux-gnu'; rustupSha256='ad1f8b5199b3b9e231472ed7aa08d2e5d1d539198a15c5b1e53c746aad81d27b' ;; \
|
||||
armhf) rustArch='armv7-unknown-linux-gnueabihf'; rustupSha256='6c6c3789dabf12171c7f500e06d21d8004b5318a5083df8b0b02c0e5ef1d017b' ;; \
|
||||
arm64) rustArch='aarch64-unknown-linux-gnu'; rustupSha256='26942c80234bac34b3c1352abbd9187d3e23b43dae3cf56a9f9c1ea8ee53076d' ;; \
|
||||
i386) rustArch='i686-unknown-linux-gnu'; rustupSha256='27ae12bc294a34e566579deba3e066245d09b8871dc021ef45fc715dced05297' ;; \
|
||||
*) echo >&2 "unsupported architecture: ${dpkgArch}"; exit 1 ;; \
|
||||
esac; \
|
||||
url="https://static.rust-lang.org/rustup/archive/1.21.1/${rustArch}/rustup-init"; \
|
||||
wget "$url"; \
|
||||
echo "${rustupSha256} *rustup-init" | sha256sum -c -; \
|
||||
chmod +x rustup-init; \
|
||||
./rustup-init -y --no-modify-path --profile minimal --default-toolchain $RUST_VERSION; \
|
||||
rm rustup-init; \
|
||||
chmod -R a+w $RUSTUP_HOME $CARGO_HOME; \
|
||||
rustup --version; \
|
||||
cargo --version; \
|
||||
rustc --version;
|
||||
|
||||
RUN mkdir espanso
|
||||
|
||||
COPY . espanso
|
||||
|
||||
RUN cd espanso \
|
||||
&& cargo install cargo-deb
|
|
@ -1,16 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
echo "Testing espanso..."
|
||||
cd espanso
|
||||
cargo test --release
|
||||
|
||||
echo "Building espanso and packaging deb"
|
||||
cargo deb
|
||||
|
||||
cd ..
|
||||
cp espanso/target/debian/espanso*.deb espanso-debian-amd64.deb
|
||||
sha256sum espanso-debian-amd64.deb > espanso-debian-amd64-sha256.txt
|
||||
ls -la
|
||||
|
||||
echo "Copying to mounted volume"
|
||||
cp espanso-debian-* /shared
|
Loading…
Reference in New Issue
Block a user