mirror of
https://github.com/bertptrs/adventofcode.git
synced 2025-12-27 05:40:32 +01:00
Set up travis for use with Python
This commit is contained in:
29
.travis.yml
29
.travis.yml
@@ -1,19 +1,24 @@
|
|||||||
dist: bionic
|
dist: bionic
|
||||||
language: rust
|
language: python
|
||||||
rust:
|
|
||||||
- stable
|
python:
|
||||||
- beta
|
- "3.9"
|
||||||
- nightly
|
- "nightly"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
allow_failures:
|
allow_failures:
|
||||||
- rust: nightly
|
- python: nightly
|
||||||
fast_finish: true
|
fast_finish: true
|
||||||
|
|
||||||
cache:
|
|
||||||
- cargo
|
|
||||||
- 2020/target
|
|
||||||
|
|
||||||
# Custom directory, for the correct year
|
# Custom directory, for the correct year
|
||||||
before_script:
|
before_install:
|
||||||
- cd 2020
|
- cd 2019
|
||||||
|
- python -m pip install --upgrade pip
|
||||||
|
|
||||||
|
script: pytest
|
||||||
|
|
||||||
|
cache:
|
||||||
|
directories:
|
||||||
|
- $HOME/.cache/pip
|
||||||
|
before_cache:
|
||||||
|
- rm -f $HOME/.cache/pip/log/debug.log
|
||||||
|
|||||||
Reference in New Issue
Block a user