mirror of
https://github.com/timvisee/ffsend.git
synced 2025-10-03 17:49:15 +02:00
Fix snapcraft login on CI, cleanup GitLab CI configuration
This commit is contained in:
parent
e75202eb1a
commit
db28443816
1 changed files with 19 additions and 20 deletions
|
@ -50,17 +50,17 @@ variables:
|
||||||
- cargo check --no-default-features --features send2 --verbose
|
- cargo check --no-default-features --features send2 --verbose
|
||||||
- cargo check --no-default-features --features send3 --verbose
|
- cargo check --no-default-features --features send3 --verbose
|
||||||
- cargo check --features no-color --verbose
|
- cargo check --features no-color --verbose
|
||||||
rust-stable:
|
check-stable:
|
||||||
<<: *check-base
|
<<: *check-base
|
||||||
rust-beta:
|
check-beta:
|
||||||
<<: *check-base
|
<<: *check-base
|
||||||
variables:
|
variables:
|
||||||
RUST_VERSION: beta
|
RUST_VERSION: beta
|
||||||
rust-nightly:
|
check-nightly:
|
||||||
<<: *check-base
|
<<: *check-base
|
||||||
variables:
|
variables:
|
||||||
RUST_VERSION: nightly
|
RUST_VERSION: nightly
|
||||||
rust-old:
|
check-old:
|
||||||
<<: *check-base
|
<<: *check-base
|
||||||
variables:
|
variables:
|
||||||
RUST_VERSION: "1.32.0"
|
RUST_VERSION: "1.32.0"
|
||||||
|
@ -114,14 +114,14 @@ build-x86_64-linux-musl:
|
||||||
expire_in: 1 month
|
expire_in: 1 month
|
||||||
|
|
||||||
# Run the unit tests through Cargo
|
# Run the unit tests through Cargo
|
||||||
cargo-test:
|
test-cargo:
|
||||||
stage: test
|
stage: test
|
||||||
dependencies: []
|
dependencies: []
|
||||||
script:
|
script:
|
||||||
- cargo test --verbose
|
- cargo test --verbose
|
||||||
|
|
||||||
# Run integration test with the public Send service
|
# Run integration test with the public Send service
|
||||||
public-send-test:
|
test-public:
|
||||||
stage: test
|
stage: test
|
||||||
allow_failure: true
|
allow_failure: true
|
||||||
dependencies:
|
dependencies:
|
||||||
|
@ -145,8 +145,9 @@ public-send-test:
|
||||||
- "cmp --silent ./testfile ./downloadfile2 || (echo ERROR: Downloaded file is different than original; exit 1)"
|
- "cmp --silent ./testfile ./downloadfile2 || (echo ERROR: Downloaded file is different than original; exit 1)"
|
||||||
|
|
||||||
# Cargo crate release
|
# Cargo crate release
|
||||||
crate:
|
release-crate:
|
||||||
stage: release
|
stage: release
|
||||||
|
dependencies: []
|
||||||
only:
|
only:
|
||||||
- /^v(\d+\.)*\d+$/
|
- /^v(\d+\.)*\d+$/
|
||||||
script:
|
script:
|
||||||
|
@ -156,9 +157,10 @@ crate:
|
||||||
- cargo publish --verbose --allow-dirty
|
- cargo publish --verbose --allow-dirty
|
||||||
|
|
||||||
# Snap release
|
# Snap release
|
||||||
snap:
|
release-snap:
|
||||||
image: snapcore/snapcraft:edge
|
image: snapcore/snapcraft:edge
|
||||||
stage: release
|
stage: release
|
||||||
|
dependencies: []
|
||||||
only:
|
only:
|
||||||
- /^v(\d+\.)*\d+$/
|
- /^v(\d+\.)*\d+$/
|
||||||
before_script: []
|
before_script: []
|
||||||
|
@ -179,11 +181,17 @@ snap:
|
||||||
|
|
||||||
# Publish snap package
|
# Publish snap package
|
||||||
- echo "Publishing snap package..."
|
- echo "Publishing snap package..."
|
||||||
- echo "$SNAP_MAIL\n&SNAP_PASSWORD" | snapcraft login
|
- echo "$SNAPCRAFT_LOGIN" | base64 -d > snapcraft.login
|
||||||
|
- snapcraft login --with snapcraft.login
|
||||||
- snapcraft push --release=stable ffsend_*_amd64.snap
|
- snapcraft push --release=stable ffsend_*_amd64.snap
|
||||||
|
artifacts:
|
||||||
|
name: ffsend-snap-x86_64
|
||||||
|
paths:
|
||||||
|
- pkg/snap/ffsend_*_amd64.snap
|
||||||
|
expire_in: 1 month
|
||||||
|
|
||||||
# Publish release binaries to as GitHub release
|
# Publish release binaries to as GitHub release
|
||||||
github-release:
|
release-github:
|
||||||
stage: release
|
stage: release
|
||||||
only:
|
only:
|
||||||
- /^v(\d+\.)*\d+$/
|
- /^v(\d+\.)*\d+$/
|
||||||
|
@ -210,6 +218,7 @@ github-release:
|
||||||
package-aur:
|
package-aur:
|
||||||
image: archlinux/base
|
image: archlinux/base
|
||||||
stage: package
|
stage: package
|
||||||
|
dependencies: []
|
||||||
only:
|
only:
|
||||||
- /^v(\d+\.)*\d+$/
|
- /^v(\d+\.)*\d+$/
|
||||||
before_script: []
|
before_script: []
|
||||||
|
@ -272,14 +281,4 @@ package-aur:
|
||||||
- git push
|
- git push
|
||||||
- cd ..
|
- cd ..
|
||||||
|
|
||||||
# # Trigger a release build on AppVeyor, for a Windows binary
|
|
||||||
# trigger-appveyor-release:
|
|
||||||
# stage: package
|
|
||||||
# only:
|
|
||||||
# - "/^v([0-9]+\\.)*[0-9]+.*$/"
|
|
||||||
# script:
|
|
||||||
# - apt-get install -y --no-install-recommends curl
|
|
||||||
# - export VERSION=$(echo $CI_COMMIT_REF_NAME | cut -c 2-)
|
|
||||||
# - 'curl -L -H "Content-Type: application/json" -H "Authorization: Bearer $APPVEYOR_TOKEN" -d "{\"accountName\":\"timvisee\",\"projectSlug\":\"ffsend\",\"tag\":\"$CI_COMMIT_REF_NAME\",\"environmentVariables\":{\"FFSEND_VERSION\":\"$VERSION\"}}" https://ci.appveyor.com/api/builds'
|
|
||||||
|
|
||||||
# TODO: add job to test ffsend{-git} AUR packages
|
# TODO: add job to test ffsend{-git} AUR packages
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue