forked from dhomane/DevOps-Python-Tools
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcodeship.yml
More file actions
56 lines (51 loc) · 1.63 KB
/
codeship.yml
File metadata and controls
56 lines (51 loc) · 1.63 KB
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
54
55
56
#
# Author: Hari Sekhon
# Date: 2021-04-12 18:33:44 +0100 (Mon, 12 Apr 2021)
#
# vim:ts=2:sts=2:sw=2:et
#
# https://github.com/HariSekhon/DevOps-Python-tools
#
# License: see accompanying Hari Sekhon LICENSE file
#
# 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
#
# https://www.linkedin.com/in/HariSekhon
#
# ============================================================================ #
# C o d e S h i p
# ============================================================================ #
# 3rd party way of doing IaC on CodeShip CI as the free edition doesn't support this
# https://github.com/painless-software/codeship-yaml
# Requires setting up the CodeShip commands like so:
#
# pip install codeship-yaml
# codeship-yaml
#
# or seaparately in sections:
#
# Project Settings > Test Settings > Setup Commands:
#
# pip install codeship-yaml
# codeship-yaml install
#
# Project Settings > Test Settings > Test Commands:
#
# codeship-yaml before_script script
#
# Project Settings > Deployment > (branch name)
#
# codeship-yaml after_success
---
install:
# these cause package installation breakages due to GPG or 403 errors, old addresses etc.
- sudo rm -fv -- /etc/apt/sources.list.d/cli_assets_heroku_com_branches_stable_apt.list
- sudo rm -fv -- /etc/apt/sources.list.d/apache_bintray_com_couchdb_deb.list
- sudo rm -fv -- /etc/apt/sources.list.d/www_apache_org_dist_cassandra_debian.list
- make
#before_script:
# - somecommand
script:
- make test
#after_success:
# - echo "Now we can deploy"