mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 18:59:04 +08:00
Run snippet tests for stable and beta Rusts
This commit is contained in:
1 parent
9e8c5fb960
commit
a9d6c8db87
2 files changed
+31
-10
No files matched your search
+15
-10
@@ -24,13 +24,18 @@ matrix:
|
||||
directories:
|
||||
- /home/travis/.cargo
|
||||
- target
|
||||
before_script:
|
||||
- curl -sSf https://build.travis-ci.org/files/rustup-init.sh | sh -s -- --default-toolchain=stable -y
|
||||
- export PATH=$HOME/.cargo/bin:$PATH
|
||||
install:
|
||||
- pip install pipenv
|
||||
- (cd tests; pipenv install)
|
||||
script:
|
||||
# Build outside of the test runner
|
||||
- cargo build --verbose --release
|
||||
- (cd tests; pipenv run pytest)
|
||||
env:
|
||||
- TRAVIS_RUST_VERSION=stable
|
||||
script: tests/.travis-runner.sh
|
||||
- language: python
|
||||
python: 3.6
|
||||
cache:
|
||||
pip: true
|
||||
# Because we're using the Python Travis environment, we can't use
|
||||
# the built-in cargo cacher
|
||||
directories:
|
||||
- /home/travis/.cargo
|
||||
- target
|
||||
env:
|
||||
- TRAVIS_RUST_VERSION=beta
|
||||
script: tests/.travis-runner.sh
|
||||
Executable
+16
@@ -0,0 +1,16 @@
|
||||
#!/bin/sh -eux
|
||||
# This script is intended to be run in Travis from the root of the repository
|
||||
|
||||
# Install Rust
|
||||
curl -sSf https://build.travis-ci.org/files/rustup-init.sh | sh -s -- --default-toolchain=$TRAVIS_RUST_VERSION -y
|
||||
export PATH=$HOME/.cargo/bin:$PATH
|
||||
|
||||
# Install pipenv
|
||||
pip install pipenv
|
||||
(cd tests; pipenv install)
|
||||
|
||||
# Build outside of the test runner
|
||||
cargo build --verbose --release
|
||||
|
||||
# Run the tests
|
||||
(cd tests; pipenv run pytest)
|
||||
Reference in new issue
Block a user