Skip to content

Commit 4b8e7f7

Browse files
cognifloydstackstorm-neptr
authored andcommitted
Use Github Actions instead of CirclecI
1 parent 9e496e6 commit 4b8e7f7

File tree

3 files changed

+47
-99
lines changed

3 files changed

+47
-99
lines changed

.circleci/config.yml

+5-99
Original file line numberDiff line numberDiff line change
@@ -1,110 +1,16 @@
11
version: 2
22

33
jobs:
4-
build_and_test_python36:
4+
circleci_is_disabled_job:
55
docker:
6-
- image: circleci/python:3.6
7-
- image: rabbitmq:3
8-
- image: mongo:3.4
9-
10-
working_directory: ~/repo
11-
12-
environment:
13-
VIRTUALENV_DIR: "~/virtualenv"
14-
# Don't install various StackStorm dependencies which are already
15-
# installed by CI again in the various check scripts
16-
ST2_INSTALL_DEPS: "0"
17-
6+
- image: cimg/base:stable
187
steps:
19-
- checkout
20-
- restore_cache:
21-
key: v1-dependency-cache-py36-{{ checksum "requirements.txt" }}
22-
- run:
23-
name: Download dependencies
24-
# NOTE: We don't want to use default "-e" option because this means
25-
# step will fail immediately on one of the commands failures and we
26-
# can't intercept the error and cause non-fatal exit in case pack
27-
# doesn't declare support for Python 3
28-
shell: /bin/bash
29-
command: |
30-
git clone -b master git://github.com/stackstorm-exchange/ci.git ~/ci
31-
~/ci/.circle/dependencies ; ~/ci/.circle/exit_on_py3_checks $?
328
- run:
33-
name: Run tests (Python 3.6)
34-
# NOTE: We don't want to use default "-e" option because this means
35-
# step will fail immediately on one of the commands failures and we
36-
# can't intercept the error and cause non-fatal exit in case pack
37-
# doesn't declare support for Python 3
389
shell: /bin/bash
39-
command: ~/ci/.circle/test ; ~/ci/.circle/exit_on_py3_checks $?
40-
- save_cache:
41-
key: v1-dependency-cache-py36-{{ checksum "requirements.txt" }}
42-
paths:
43-
- ~/.cache/pip
44-
- ~/.apt-cache
45-
# NOTE: We use virtualenv files from Python 3.6 step in "deploy" job so we
46-
# only persist paths from this job
47-
- persist_to_workspace:
48-
root: /
49-
paths:
50-
- home/circleci/ci
51-
- home/circleci/virtualenv
52-
- tmp/st2
53-
- home/circleci/repo
54-
- home/circleci/.gitconfig
55-
56-
57-
deploy:
58-
docker:
59-
- image: circleci/python:3.6
60-
61-
working_directory: ~/repo
62-
63-
environment:
64-
VIRTUALENV_DIR: "~/virtualenv"
65-
66-
steps:
67-
- checkout
68-
- restore_cache:
69-
key: v1-dependency-cache-py36-{{ checksum "requirements.txt" }}
70-
- attach_workspace:
71-
at: /
72-
- run:
73-
name: Install dependencies
74-
command: |
75-
sudo apt-get update
76-
sudo apt -y install gmic optipng
77-
~/ci/.circle/install_gh
78-
- run:
79-
# NOTE: We try to retry the script up to 5 times if it fails. The command could fail due
80-
# to the race (e.g. we try to push changes to index, but index has been updated by some
81-
# other pack in the mean time)
82-
name: Update exchange.stackstorm.org
83-
command: ~/ci/.circle/retry_on_failure.sh ~/ci/.circle/deployment
10+
command: echo CircleCI disabled on StackStorm-Exchange
8411

8512
workflows:
8613
version: 2
87-
# Workflow which runs on each push
88-
build_test_deploy_on_push:
89-
jobs:
90-
- build_and_test_python36
91-
- deploy:
92-
requires:
93-
- build_and_test_python36
94-
filters:
95-
branches:
96-
only: master
97-
build_test_weekly:
14+
circleci_is_disabled:
9815
jobs:
99-
- build_and_test_python36
100-
# Workflow which runs nightly - note we don't perform deploy job on nightly
101-
# build
102-
triggers:
103-
# Run nightly build for the pack
104-
- schedule:
105-
# NOTE: We run it at 1 am UTC on every Saturday
106-
cron: "0 1 * * 6"
107-
filters:
108-
branches:
109-
only:
110-
- master
16+
- circleci_is_disabled_job

.github/workflows/build_and_test.yaml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
schedule:
6+
# NOTE: We run this weekly at 1 am UTC on every Saturday
7+
- cron: '0 1 * * 6'
8+
9+
jobs:
10+
# This is mirrored in the release workflow.
11+
build_and_test:
12+
name: 'Build and Test'
13+
uses: StackStorm-Exchange/ci/.github/workflows/pack-build_and_test.yaml@master
14+
with:
15+
enable-common-libs: true
16+
#apt-cache-version: v0
17+
#py-cache-version: v0

.github/workflows/release.yaml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
# the default branch
7+
- master
8+
9+
permissions:
10+
contents: write
11+
12+
jobs:
13+
# This mirrors build_and_test workflow
14+
build_and_test:
15+
name: 'Build and Test'
16+
uses: StackStorm-Exchange/ci/.github/workflows/pack-build_and_test.yaml@master
17+
with:
18+
enable-common-libs: true
19+
#apt-cache-version: v0
20+
#py-cache-version: v0
21+
22+
tag_release:
23+
needs: build_and_test
24+
name: Tag Release
25+
uses: StackStorm-Exchange/ci/.github/workflows/pack-tag_release.yaml@master

0 commit comments

Comments
 (0)