This repository has been archived by the owner on Dec 9, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
57 lines (50 loc) · 1.67 KB
/
.travis.yml
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
57
dist: xenial
language: python
python:
- pypy
jobs:
fast_finish: true
include:
- name: AST-based VM
before_script:
- export SOM_INTERP=AST
- export SOM_BIN=som-ast-interp
- name: Bytecode-based VM
before_script:
- export SOM_INTERP=BC
- export SOM_BIN=som-bc-interp
- name: Python 2.7
dist: focal
python: "2.7"
install: []
before_script:
- export PYTHON=python
- export PYTHONPATH=src
script:
- SOM_INTERP=AST pytest
- SOM_INTERP=BC pytest
- SOM_INTERP=AST ./som.sh -cp Smalltalk TestSuite/TestHarness.som
- SOM_INTERP=BC ./som.sh -cp Smalltalk TestSuite/TestHarness.som
- name: Python 3.8
dist: focal
python: "3.8"
install: []
before_script:
- export PYTHON=python
- export PYTHONPATH=src
script:
- SOM_INTERP=AST pytest
- SOM_INTERP=BC pytest
- SOM_INTERP=AST ./som.sh -cp Smalltalk TestSuite/TestHarness.som
- SOM_INTERP=BC ./som.sh -cp Smalltalk TestSuite/TestHarness.som
install:
- travis_retry wget https://downloads.python.org/pypy/pypy2.7-v7.3.1-src.tar.bz2
- tar -xjf pypy2.7-v7.3.1-src.tar.bz2
- mv pypy2.7-v7.3.1-src .pypy
script:
- PYTHONPATH=$PYTHONPATH:.pypy:src pytest
- PYTHONPATH=$PYTHONPATH:.pypy ./som.sh -cp Smalltalk TestSuite/TestHarness.som
- PYTHONPATH=$PYTHONPATH:.pypy .pypy/rpython/bin/rpython --batch src/main-rpython.py
- ./$SOM_BIN -cp Smalltalk TestSuite/TestHarness.som
#- PYTHONPATH=$PYTHONPATH:pypy pypy/rpython/bin/rpython --batch -Ojit src/main-rpython.py
#- ./som-bc-jit -cp Smalltalk TestSuite/TestHarness.som