-
-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy path.travis.yml
53 lines (46 loc) · 1.04 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
---
language: bash
os:
- linux
services:
- docker
# branches:
# only:
# - master
stages:
- test
- build_deploy
jobs:
include:
- stage: test
name: "AgentInfo"
script: |
./agent-info.sh
- stage: test
name: "YamlLint"
script: |
docker run --rm -v $(pwd):/repo -t alpine:3.12 /bin/sh -c '
cd /repo
apk add --no-cache shellcheck py-pip python3 bash
pip3 install yamllint
yamllint .
'
- stage: test
name: "ShellCheck"
script: |
docker run --rm -v $(pwd):/repo -t alpine:3.12 /bin/sh -c '
cd /repo
apk add --no-cache shellcheck py-pip python3 bash
shellcheck ./*.sh
'
- stage: build_deploy
name: "Build Fedora and Deploy to GitHub Releases"
script: ./build_in_docker.sh
deploy:
provider: releases
api_key: "$GITHUB_TOKEN"
file_glob: true
file: "fedora-kickstarts/output_zip/*"
skip_cleanup: true
on:
tags: true