mbp-ubuntu/.travis.yml

50 lines
1009 B
YAML
Raw Normal View History

2020-04-17 05:53:48 -04:00
---
language: bash
os:
- linux
services:
- docker
2021-07-23 19:37:26 -04:00
# branches:
2020-04-24 06:19:37 -04:00
# only:
# - master
2020-04-17 05:53:48 -04:00
stages:
- test
- build_deploy
jobs:
include:
- stage: test
name: "YamlLint"
script: |
docker run --rm -v $(pwd):/repo -it alpine:latest /bin/sh -c '
cd /repo
apk add --no-cache python3 py-pip
pip install yamllint
2020-04-17 05:53:48 -04:00
yamllint .
'
- stage: test
name: "ShellCheck"
script: |
docker run --rm -v $(pwd):/repo -it alpine:latest /bin/sh -c '
cd /repo
apk add --no-cache shellcheck bash
shellcheck ./*.sh
2020-04-24 06:19:37 -04:00
shellcheck ./files/*.sh
2020-04-17 05:53:48 -04:00
'
- stage: build_deploy
name: "Build Ubuntu and Deploy to GitHub Releases"
script: ./build_in_docker.sh
deploy:
provider: releases
api_key: "$GITHUB_TOKEN"
file_glob: true
2020-04-24 06:19:37 -04:00
file: "output/*"
2020-04-17 05:53:48 -04:00
skip_cleanup: true
2021-07-23 19:37:26 -04:00
# yamllint disable-line rule:truthy
2020-04-17 05:53:48 -04:00
on:
tags: true