Skip to content

Commit 7a4729d

Browse files
cognifloydstackstorm-neptr
authored andcommitted
Test infra for py2.7 is broken. Drop it.
We will no longer test packs with python2.7, as it is broken and the fix (re-adding 2.7) is too invasive across all of our infrastructure. on-behalf-of: @StackStorm-Exchange <[email protected]>
1 parent f211c7d commit 7a4729d

File tree

1 file changed

+13
-50
lines changed

1 file changed

+13
-50
lines changed

.circleci/config.yml

Lines changed: 13 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,6 @@
11
version: 2
22

33
jobs:
4-
build_and_test_python27:
5-
docker:
6-
- image: circleci/python:2.7
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-
18-
steps:
19-
- checkout
20-
- restore_cache:
21-
key: v1-dependency-cache-py27-{{ checksum "requirements.txt" }}
22-
- run:
23-
name: Download dependencies
24-
command: |
25-
git clone -b master git://github.com/stackstorm-exchange/ci.git ~/ci
26-
~/ci/.circle/dependencies
27-
- run:
28-
name: Run tests (Python 2.7)
29-
command: ~/ci/.circle/test
30-
- save_cache:
31-
key: v1-dependency-cache-py27-{{ checksum "requirements.txt" }}
32-
paths:
33-
- ~/.cache/pip
34-
- ~/.apt-cache
35-
# NOTE: We use virtualenv files from Python 2.7 step in "deploy" job so we
36-
# only persist paths from this job
37-
- persist_to_workspace:
38-
root: /
39-
paths:
40-
- home/circleci/ci
41-
- home/circleci/virtualenv
42-
- tmp/st2
43-
- home/circleci/repo
44-
- home/circleci/.gitconfig
45-
46-
# NOTE: Until we add "python_version" metadata attribute to pack.yaml and
47-
# explicitly call which packs work with Python 3.x, Python 3.x failures are
48-
# not considered fatal
494
build_and_test_python36:
505
docker:
516
- image: circleci/python:3.6
@@ -87,10 +42,21 @@ jobs:
8742
paths:
8843
- ~/.cache/pip
8944
- ~/.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+
9056

9157
deploy:
9258
docker:
93-
- image: circleci/python:2.7
59+
- image: circleci/python:3.6
9460

9561
working_directory: ~/repo
9662

@@ -100,7 +66,7 @@ jobs:
10066
steps:
10167
- checkout
10268
- restore_cache:
103-
key: v1-dependency-cache-py27-{{ checksum "requirements.txt" }}
69+
key: v1-dependency-cache-py36-{{ checksum "requirements.txt" }}
10470
- attach_workspace:
10571
at: /
10672
- run:
@@ -120,18 +86,15 @@ workflows:
12086
# Workflow which runs on each push
12187
build_test_deploy_on_push:
12288
jobs:
123-
- build_and_test_python27
12489
- build_and_test_python36
12590
- deploy:
12691
requires:
127-
- build_and_test_python27
12892
- build_and_test_python36
12993
filters:
13094
branches:
13195
only: master
13296
build_test_weekly:
13397
jobs:
134-
- build_and_test_python27
13598
- build_and_test_python36
13699
# Workflow which runs nightly - note we don't perform deploy job on nightly
137100
# build

0 commit comments

Comments
 (0)