Skip to content

Commit 9203a56

Browse files
authored
Merge pull request #51 from rocky/circleci-woes
Try updating CircleCI config
2 parents ee43342 + cca5519 commit 9203a56

1 file changed

Lines changed: 36 additions & 26 deletions

File tree

.circleci/config.yml

Lines changed: 36 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,43 @@
11
version: 2.1
2-
filters:
3-
branches:
4-
only: master
5-
orbs:
6-
python: circleci/python@0.2.1
7-
82
jobs:
9-
build-and-test:
3+
build:
4+
working_directory: ~/rocky/python3-trepan
105
parallelism: 1
116
shell: /bin/bash --login
12-
working_directory: ~/rocky/python3-trepan
7+
environment:
8+
CIRCLE_ARTIFACTS: /tmp/circleci-artifacts
9+
CIRCLE_TEST_REPORTS: /tmp/circleci-test-results
1310
docker:
14-
- image: circleci/python:3.8
11+
- image: cimg/python:3.8.12
12+
auth:
13+
username: rockyb
14+
password: $DOCKERHUB_PASSWORD
1515
steps:
1616
- checkout # checkout source code to working directory
17-
- run:
18-
command: | # use pip to install dependencies. FIXME: can we get rid of sudo?
19-
pip install --local -e git+https://github.com/rocky/python-xdis.git#egg=xdis
20-
pip install --local -e git+https://github.com/rocky/pytracer.git#egg=tracer
21-
pip install --local -e git+https://github.com/rocky/python-filecache.git#egg=pyficache
22-
pip install --local -e git+https://github.com/rocky/python-decompile3.git#egg=decompyle3
23-
pip install --local -e .
24-
# pip install --local -r requirements-dev.txt
25-
name: Install dependencies
26-
- run:
27-
command: sudo python ./setup.py develop && make test-unit test-functional
28-
name: Run Tests
29-
30-
workflows:
31-
main:
32-
jobs:
33-
- build-and-test
17+
- run: pip install --local -e git+https://github.com/rocky/python-xdis.git#egg=xdis
18+
- run: pip install --local -e git+https://github.com/rocky/pytracer.git#egg=tracer
19+
- run: pip install --local -e git+https://github.com/rocky/python-filecache.git#egg=pyficache
20+
- run: pip install --local -e git+https://github.com/rocky/python-decompile3.git#egg=decompyle3
21+
- run: pip install --local -e .
22+
- restore_cache:
23+
keys:
24+
# This branch if available
25+
- v2-dependencies-{{ .Branch }}-
26+
# Default branch if not
27+
- v2-dependencies-master-
28+
# Any branch if there are none on the default branch - this should be unnecessary if you have your default branch configured correctly
29+
- v2-dependencies-
30+
# Save dependency cache
31+
- save_cache:
32+
key: v2-dependencies-{{ .Branch }}-{{ epoch }}
33+
paths:
34+
# This is a broad list of cache paths to include many possible development environments
35+
# You can probably delete some of these entries
36+
- vendor/bundle
37+
- ~/virtualenvs
38+
- ~/.m2
39+
- ~/.ivy2
40+
- ~/.bundle
41+
- ~/.go_workspace
42+
- ~/.gradle
43+
- ~/.cache/bower

0 commit comments

Comments
 (0)