-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
100 lines (81 loc) · 2.98 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
%YAML 1.1
# Currently Travis CI only conforms to v1.1 YAML spec.
# Refer https://github.com/travis-ci/travis-ci/issues/9600 for details
---
# Travis CI Configuration
# https://docs.travis-ci.com
# This file is in YAML data serialization language.
# http://yaml.org/
# This file is based on Configuration Templates for Travis CI
# https://github.com/Lin-Buo-Ren/Configuration-Templates-for-Travis-CI
# Copyright 2020 林博仁(Buo-ren, Lin) <[email protected]>
# SPDX-License-Identifier: CC-BY-SA-4.0
# Project-specific settings #
# Main programming language used in the project
# https://docs.travis-ci.com/user/languages
language: yaml
# Git related settings #
git:
# You may limit the depth of history cloned by Travis CI if you don't do Git operations depend on it(default: 50)
# https://docs.travis-ci.com/user/customizing-the-build/#Git-Clone-Depth
depth: 3
# Whether or not to clone the submodules
# https://docs.travis-ci.com/user/customizing-the-build/#Git-Submodules
submodules: false
# Whether to download Git Large File Storage assets
# https://docs.travis-ci.com/user/customizing-the-build/#Git-LFS-Skip-Smudge
lfs_skip_smudge: false
# Build Environment Specification #
# Whether to use faster container build(false) or flexible VM build(required)
# NOTE: `sudo` is not available in container build!
sudo: false
# Selection of ubuntu release for build environment
dist: trusty
# The Build Lifecycle #
# https://docs.travis-ci.com/user/customizing-the-build/#The-Build-Lifecycle
# Addons(?) #
addons:
apt:
# Software packages to be installed
packages:
- realpath # script dependencies
# You can run custom commands before the installation step
before_install:
- git submodule init 'Utilities for Travis CI'
- git submodule update --depth=30
# Install/Setup any required dependencies used in continuous integration
# https://docs.travis-ci.com/user/installing-dependencies/
install:
# Sometimes dependencies needs to be build from source code and install/setup to use it
# https://docs.travis-ci.com/user/installing-dependencies/#Installing-Projects-from-Source
- ./"Utilities for Travis CI/Setup ShellCheck's Latest Release without Re-building.bash"
- PATH="${HOME}/Software/shellcheck-stable:${PATH}"
- pip install --user pre-commit
# You can run custom commands before the script/build step
before_script:
- git diff-tree -z --no-commit-id --name-only -r HEAD | xargs --null pre-commit run --files
# Put your build scripts here
script: true
# You can remove files that are not needed for caching here
before_cache: true
# Caches non-variating contents to speed up build
cache:
pip: true
directories:
- $HOME/Software
# Commands if build phase fails
after_failure: true
# Commands if build phase successes
after_success: true
before_deploy:
- ./Release.bash
deploy:
provider: releases
api_key: "$GITHUB_DEPLOY_KEY_HIDDEN"
file_glob: true
file: "template-*.travis.yml"
skip_cleanup: true
on:
tags: true
after_deploy: true
after_script: true