Skip to content

Commit 1c49f97

Browse files
committed
added semaphore.yml
1 parent 32c2a16 commit 1c49f97

File tree

1 file changed

+71
-0
lines changed

1 file changed

+71
-0
lines changed

.semaphore/semaphore.yml

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
#
2+
# Author: Hari Sekhon
3+
# Date: 2020-03-16 14:02:53 +0000 (Mon, 16 Mar 2020)
4+
#
5+
# vim:ts=2:sts=2:sw=2:et
6+
#
7+
# https://github.com/harisekhon/devops-python-tools
8+
#
9+
# License: see accompanying Hari Sekhon LICENSE file
10+
#
11+
# If you're using my code you're welcome to connect with me on LinkedIn and optionally send me feedback to help steer this or other code I publish
12+
#
13+
# https://www.linkedin.com/in/harisekhon
14+
#
15+
16+
# https://docs.semaphoreci.com/reference/pipeline-yaml-reference/
17+
18+
version: v1.0
19+
name: devops-python-tools
20+
agent:
21+
machine:
22+
type: e1-standard-2
23+
os_image: ubuntu1804
24+
execution_time_limit:
25+
hours: 3
26+
blocks:
27+
- name: Linux build
28+
run:
29+
when: "branch = 'master'"
30+
#execution_time_limit:
31+
# hours: 2
32+
task:
33+
prologue:
34+
commands:
35+
- cache restore
36+
jobs:
37+
- name: install git & make
38+
commands:
39+
- sudo apt update -qq
40+
- sudo apt install -qy git make
41+
- name: build
42+
commands:
43+
- checkout
44+
- make init
45+
- make ci
46+
- make test
47+
epilogue:
48+
commands:
49+
- cache store
50+
- name: Mac build
51+
run:
52+
when: "branch = 'masterX'"
53+
task:
54+
agent:
55+
machine:
56+
type: a1-standard-4
57+
os_image: macos-mojave-xcode10
58+
#os_image: macos-mojave-xcode11
59+
prologue:
60+
commands:
61+
- cache restore
62+
jobs:
63+
- name: build
64+
commands:
65+
- checkout
66+
- make init
67+
- make ci
68+
- make test
69+
epilogue:
70+
commands:
71+
- cache store

0 commit comments

Comments
 (0)