Skip to content

Commit 5d41ad0

Browse files
authored
Set up Circle CI (#2)
Set up Circle CI
2 parents 677aaa3 + 5557ebd commit 5d41ad0

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

.circleci/config.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
version: 2
2+
jobs:
3+
test:
4+
docker:
5+
- image: ubuntu:18.04
6+
working_directory: ~/repo
7+
steps:
8+
- checkout
9+
- run:
10+
name: Install Dependencies
11+
command: |
12+
sudo apt-get update
13+
sudo apt-get install -y --no-install-recommends gforth python
14+
- run:
15+
name: Run Tests
16+
command: python test/run-tests.py -v

test/run-tests.py

100644100755
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,6 @@ def test (filename):
5454

5555
# restore directory
5656
os.chdir (prevdir)
57+
58+
if failed > 0 or passed == 0:
59+
sys.exit(1)

0 commit comments

Comments
 (0)