-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
44 lines (40 loc) · 1.07 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
sudo: true
language: bash
services:
- docker
env:
global:
- BRANCH="BRANCH_HERE"
- GITHUB_ENDPOINT="netbootxyz/REPO_HERE"
- DEBIAN_FRONTEND="noninteractive"
- BUILD_TYPE="iso_extraction"
branches:
only:
- 'BRANCH_HERE'
if: type != pull_request AND tag IS blank
script:
- |
export EXTERNAL_VERSION=$(CUSTOM_COMMAND_TO_DETERMINE_VERSION)
- wget https://raw.githubusercontent.com/netbootxyz/build-pipelines/master/build.sh && chmod +x build.sh
- git config --local user.name $GIT_USERNAME
- git config --local user.email $GIT_EMAIL
- export TRAVIS_TAG=${EXTERNAL_VERSION}-$(echo ${TRAVIS_COMMIT} | cut -c1-8)
- ./build.sh compare ${TRAVIS_TAG} || travis_terminate 0
- ./build.sh build ${BUILD_TYPE}
before_deploy:
# Tag this commit for release
- git tag ${TRAVIS_TAG}
deploy:
provider: releases
api_key: $GITHUB_TOKEN
file_glob: true
file: buildout/*
skip_cleanup: true
on:
branch: $BRANCH
after_deploy:
- ./build.sh endpoints $TRAVIS_TAG
after_success:
- ./build.sh discord success
after_failure:
- ./build.sh discord failure