Compare commits

...

5 Commits

Author SHA1 Message Date
Alexey Rogachevskiy
3460fec25e travis: Use short commit notation 2020-08-10 00:19:05 +03:00
Alexey Rogachevskiy
fa44e4b42f travis: Fix IMAGE_VERSION initialization 2020-08-09 01:00:56 +03:00
Alexey Rogachevskiy
4bc985a7f4 travis: Generate zip file after successful build 2020-08-08 21:26:06 +03:00
Alexey Rogachevskiy
c2bfa07a36 travis: Fix parsing errors 2020-08-07 17:36:56 +03:00
Alexey Rogachevskiy
6ba27ef15d travis: Output compressed image size 2020-08-07 17:28:48 +03:00

View File

@@ -7,7 +7,7 @@ env:
global: global:
- DOCKER="sfalexrog/img-tool:qemu-update" - DOCKER="sfalexrog/img-tool:qemu-update"
- TARGET_REPO="https://github.com/${TRAVIS_REPO_SLUG}.git" - TARGET_REPO="https://github.com/${TRAVIS_REPO_SLUG}.git"
- if [[ -z ${TRAVIS_TAG} ]]; then IMAGE_VERSION="${TRAVIS_COMMIT}}"; else IMAGE_VERSION="${TRAVIS_TAG}"; fi - IMAGE_VERSION=${TRAVIS_TAG:-${TRAVIS_COMMIT:0:7}}
- IMAGE_NAME="$(basename -s '.git' ${TARGET_REPO})_${IMAGE_VERSION}.img" - IMAGE_NAME="$(basename -s '.git' ${TARGET_REPO})_${IMAGE_VERSION}.img"
git: git:
depth: 50 depth: 50
@@ -36,12 +36,13 @@ jobs:
fi fi
before_cache: before_cache:
- cp images/*.zip imgcache - cp images/*.zip imgcache
after_success:
- sudo chmod -R 777 *
- cd images && zip ${IMAGE_NAME}.zip ${IMAGE_NAME} && stat --printf="Compressed image size:%s\n" ${IMAGE_NAME}.zip
before_deploy: before_deploy:
# Set up git user name and tag this commit # Set up git user name and tag this commit
- git config --local user.name "goldarte" - git config --local user.name "goldarte"
- git config --local user.email "goldartt@gmail.com" - git config --local user.email "goldartt@gmail.com"
- sudo chmod -R 777 *
- cd images && zip ${IMAGE_NAME}.zip ${IMAGE_NAME}
deploy: deploy:
provider: releases provider: releases
token: ${GITHUB_OAUTH_TOKEN} token: ${GITHUB_OAUTH_TOKEN}