diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2021-02-06 17:18:28 +0100 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2021-02-06 17:18:28 +0100 |
| commit | b274deda77d48575a0fbdc1dc354893fa3597b3d (patch) | |
| tree | 13fece00a31ebc62de8cf800803cb76fb0f755b4 /.travis.yml | |
| parent | 2adb019f982847212e24daa10fe760783cc6ed47 (diff) | |
| download | minishell_test-b274deda77d48575a0fbdc1dc354893fa3597b3d.tar.gz minishell_test-b274deda77d48575a0fbdc1dc354893fa3597b3d.tar.bz2 minishell_test-b274deda77d48575a0fbdc1dc354893fa3597b3d.zip | |
Updated tox.ini to test valgrindpackage
Diffstat (limited to '.travis.yml')
| -rw-r--r-- | .travis.yml | 29 |
1 files changed, 21 insertions, 8 deletions
diff --git a/.travis.yml b/.travis.yml index 1c3d705..0fb4c0e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,19 +1,32 @@ language: python + +os: + - linux + - osx + python: - "3.6" - "3.7" - "3.8" - "3.9" +addons: + apt: + packages: + - valgrind + +before_install: + - if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew update ; fi + - if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew install valgrind; fi + install: + - pip install -e . - pip install -r requirements.txt - - git clone --recurse-submodule https://github.com/ouaisbrefbams/minishell ../minishell - - sed -i 's/-Werror//' ../minishell/Makefile ../minishell/libft/Makefile - - sudo apt update - - sudo apt install valgrind + - git clone --recurse-submodule https://github.com/ouaisbrefbams/minishell /tmp/minishell + - sed -i 's/-Werror//' /tmp/minishell/Makefile /tmp/minishell/libft/Makefile script: - - python -m flake8 - - python -m mypy src - - ./run - - ./run -k pwd + - python -m flake8 minishell_test + - python -m mypy minishell_test + - python -m minishell_test -p /tmp/minishell + - python -m minishell_test -p /tmp/minishell -k pwd |
