File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ #
2+ # Author: Hari Sekhon
3+ # Date: Tue Feb 4 09:53:28 2020 +0000
4+ #
5+ # vim:ts=2:sts=2:sw=2:et
6+ #
7+ # https://github.com/harisekhon/devops-python-tools
8+ #
9+ # If you're using my code you're welcome to connect with me on LinkedIn and optionally send me feedback
10+ #
11+ # https://www.linkedin.com/in/harisekhon
12+ #
13+
14+ name : CI Ubuntu
15+
16+ # env:
17+ # DEBUG: 1
18+
19+ on : # [push]
20+ push :
21+ branches :
22+ - master
23+ schedule :
24+ # * is a special character in YAML so you have to quote this string
25+ - cron : ' 0 7 * * *'
26+
27+ jobs :
28+ build :
29+ # name: build
30+ timeout-minutes : 60
31+ runs-on : ubuntu-latest
32+ container : ubuntu:latest
33+ env :
34+ repo : devops-python-tools
35+ steps :
36+ # untars repo in docker container so git submodule update fails
37+ # - uses: actions/checkout@v2
38+ - name : install git & make
39+ run : apt-get update -qq && apt-get install -qy git make
40+ - name : git clone
41+ run : cd /tmp && git clone "https://github.com/harisekhon/$repo"
42+ - name : init
43+ run : cd "/tmp/$repo" && git submodule update --init --recursive
44+ - name : build
45+ run : cd "/tmp/$repo" && make ci
46+ - name : test
47+ run : cd "/tmp/$repo" && make test
You can’t perform that action at this time.
0 commit comments