mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-11 18:29:52 +03:00
removed
This commit is contained in:
72
.travis.yml
72
.travis.yml
@@ -1,72 +0,0 @@
|
|||||||
os: linux
|
|
||||||
dist: bionic
|
|
||||||
language: python
|
|
||||||
python:
|
|
||||||
- "3.8"
|
|
||||||
|
|
||||||
cache:
|
|
||||||
directories:
|
|
||||||
- ${HOME}/.pio
|
|
||||||
|
|
||||||
env:
|
|
||||||
global:
|
|
||||||
- BUILDER_TOTAL_THREADS=1
|
|
||||||
- OWNER=${TRAVIS_REPO_SLUG%/*}
|
|
||||||
- DEV=${OWNER/proddy/dev}
|
|
||||||
- BRANCH=${TRAVIS_BRANCH/dev/}
|
|
||||||
- TAG=${DEV}${BRANCH:+_}${BRANCH}
|
|
||||||
|
|
||||||
install:
|
|
||||||
- env | grep TRAVIS
|
|
||||||
- set -e
|
|
||||||
- pip install -U platformio
|
|
||||||
- pio platform update -p
|
|
||||||
- set +e
|
|
||||||
|
|
||||||
branches:
|
|
||||||
except:
|
|
||||||
- /^travis-.*-build$/
|
|
||||||
|
|
||||||
script:
|
|
||||||
- ./scripts/build.sh
|
|
||||||
|
|
||||||
stages:
|
|
||||||
- name: Release
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
include:
|
|
||||||
- stage: Release
|
|
||||||
|
|
||||||
before_deploy:
|
|
||||||
- export FIRMWARE_VERSION=$(grep -E '^#define EMSESP_APP_VERSION' ./src/version.h | awk '{print $3}' | sed 's/"//g')
|
|
||||||
- git tag -f travis-${TAG}-build
|
|
||||||
- git remote add gh
|
|
||||||
https://${OWNER}:${GITHUB_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git
|
|
||||||
- git push gh :travis-${TAG}-build || true
|
|
||||||
- git push -f gh travis-${TAG}-build
|
|
||||||
- git remote remove gh
|
|
||||||
|
|
||||||
deploy:
|
|
||||||
provider: releases
|
|
||||||
edge:
|
|
||||||
branch: master
|
|
||||||
token: ${GITHUB_TOKEN}
|
|
||||||
file_glob: true
|
|
||||||
file: "*.bin"
|
|
||||||
name: latest development build
|
|
||||||
release_notes:
|
|
||||||
Version $FIRMWARE_VERSION.
|
|
||||||
Automatic firmware build of the current EMS-ESP branch built on $(date +'%F %T %Z') from commit $TRAVIS_COMMIT.
|
|
||||||
Warning, this is a development build and not fully tested. Use at your own risk.
|
|
||||||
cleanup: false
|
|
||||||
prerelease: true
|
|
||||||
overwrite: true
|
|
||||||
target_commitish: $TRAVIS_COMMIT
|
|
||||||
on:
|
|
||||||
tags: false
|
|
||||||
branch: dev
|
|
||||||
|
|
||||||
notifications:
|
|
||||||
email:
|
|
||||||
on_success: change
|
|
||||||
on_failure: change
|
|
||||||
Reference in New Issue
Block a user