Skip to content

Commit ac8574f

Browse files
authored
Merge pull request #94 from scaleapi/da-add-notifications
Add slack notifications for failures of nightly build
2 parents 06a0862 + 6a9a05a commit ac8574f

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.circleci/config.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
11
# CircleCI jobs are only enabled to on Pull Requests and commits to master branch.
22
# "Only build pull requests" enabled in Project's Advanced Settings.
33
version: 2.1
4+
orbs:
5+
slack: circleci/slack@4.4.2
46

57
jobs:
68
build_test:
79
docker:
8-
- image: python:3.6-slim-buster
10+
- image: python:3.6-buster
911
resource_class: small
1012
steps:
1113
- checkout # checkout source code to working directory
1214
- run:
1315
name: Install Environment Dependencies
1416
command: | # install dependencies
17+
apt-get -y install curl
1518
pip install --upgrade pip
1619
pip install poetry
1720
poetry install
@@ -44,7 +47,11 @@ jobs:
4447
- store_test_results:
4548
path: test_results
4649
- store_artifacts:
47-
path: test_results
50+
path: test_results
51+
- slack/notify:
52+
branch_pattern: master
53+
event: fail
54+
template: basic_fail_1
4855

4956
pypi_publish:
5057
docker:
@@ -91,10 +98,12 @@ workflows:
9198
only:
9299
- master
93100
jobs:
94-
- build_test
101+
- build_test:
102+
context: Nucleus
95103
build_test_publish:
96104
jobs:
97105
- build_test:
106+
context: Nucleus
98107
filters:
99108
tags:
100109
only: /^v\d+\.\d+\.\d+$/ # Runs only for tags with the format [v1.2.3]

0 commit comments

Comments
 (0)