forked from p15670423/monkey
Merge pull request #1886 from guardicore/reduce-travis-build-time
Reduce travis build time
This commit is contained in:
commit
139a6caa1b
13
.travis.yml
13
.travis.yml
|
@ -7,10 +7,11 @@ group: travis_latest
|
||||||
language: python
|
language: python
|
||||||
|
|
||||||
env:
|
env:
|
||||||
- PIP_CACHE_DIR=$HOME/.cache/pip PIPENV_CACHE_DIR=$HOME/.cache/pipenv
|
- PIP_CACHE_DIR=$HOME/.cache/pip PIPENV_CACHE_DIR=$HOME/.cache/pipenv LIBSODIUM_MAKE_ARGS=-j8
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
- pip
|
- pip: true
|
||||||
|
- npm: true
|
||||||
- directories:
|
- directories:
|
||||||
- "$HOME/.npm"
|
- "$HOME/.npm"
|
||||||
- $PIP_CACHE_DIR
|
- $PIP_CACHE_DIR
|
||||||
|
@ -20,10 +21,13 @@ python:
|
||||||
- 3.7
|
- 3.7
|
||||||
|
|
||||||
os: linux
|
os: linux
|
||||||
|
vm:
|
||||||
|
size: x-large
|
||||||
|
|
||||||
|
|
||||||
install:
|
install:
|
||||||
# Python
|
# Python
|
||||||
|
- nproc
|
||||||
- pip install pipenv --upgrade
|
- pip install pipenv --upgrade
|
||||||
# Install island and monkey requirements as they are needed by UT's
|
# Install island and monkey requirements as they are needed by UT's
|
||||||
- pushd monkey/monkey_island
|
- pushd monkey/monkey_island
|
||||||
|
@ -37,7 +41,7 @@ install:
|
||||||
- node --version
|
- node --version
|
||||||
- npm --version
|
- npm --version
|
||||||
- nvm --version
|
- nvm --version
|
||||||
- nvm install 12
|
- nvm install 16
|
||||||
- nvm use node
|
- nvm use node
|
||||||
- npm i -g eslint
|
- npm i -g eslint
|
||||||
- node --version
|
- node --version
|
||||||
|
@ -65,7 +69,8 @@ script:
|
||||||
|
|
||||||
## Run unit tests and generate coverage data
|
## Run unit tests and generate coverage data
|
||||||
- cd monkey # This is our source dir
|
- cd monkey # This is our source dir
|
||||||
- python -m pytest --cov=. # Have to use `python -m pytest` instead of `pytest` to add "{$builddir}/monkey/monkey" to sys.path.
|
- pip install pytest-xdist
|
||||||
|
- python -m pytest -n auto --cov=. # Have to use `python -m pytest` instead of `pytest` to add "{$builddir}/monkey/monkey" to sys.path.
|
||||||
|
|
||||||
# Check JS code. The npm install must happen AFTER the flake8 because the node_modules folder will cause a lot of errors.
|
# Check JS code. The npm install must happen AFTER the flake8 because the node_modules folder will cause a lot of errors.
|
||||||
- cd monkey_island/cc/ui
|
- cd monkey_island/cc/ui
|
||||||
|
|
Loading…
Reference in New Issue