Skip to content

Commit abedbfd

Browse files
authored
Merge pull request RustPython#1660 from palaviv/run-unittests
Run Cpython tests suite in travis CI
2 parents b104183 + f015423 commit abedbfd

9 files changed

+1633
-0
lines changed

.travis.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,3 +204,17 @@ matrix:
204204
env:
205205
- JOBCACHE=10
206206
- TRAVIS_RUST_VERSION=nightly
207+
208+
- name: Run CPython test suite
209+
language: rust
210+
os: linux
211+
rust: stable
212+
cache: cargo
213+
script:
214+
- cargo build --verbose --all
215+
- export RUSTPYTHONPATH=`pwd`/Lib
216+
- cargo run -- -m test -v
217+
env:
218+
# Prevention of cache corruption.
219+
# See: https://docs.travis-ci.com/user/caching/#caches-and-build-matrices
220+
- JOBCACHE=12

Lib/test/__main__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
from test.libregrtest import main
2+
main()

0 commit comments

Comments
 (0)