- ccache
- .cache/pip
- apt-cache
+ when: 'always'
variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
build:
stage: build
+ timeout: 2h
before_script:
- mkdir -p apt-cache
- apt-get -o dir::cache::archives="$(pwd)/apt-cache" update
- pushd openpower-isa
- python3 setup.py develop
- make -j$(nproc) svanalysis > /dev/null
+ - make -j$(nproc) pyfnwriter > /dev/null 2>&1
- make -j$(nproc) pywriter > /dev/null 2>&1
- popd
- pip install dist/sfpy*.whl
- popd
- - cargo install maturin
+ - python3 -m pip install 'maturin>=0.11,<0.12'
- git clone --depth 1 https://git.libre-soc.org/git/power-instruction-analyzer.git pia
- pushd pia
- maturin build --cargo-extra-args=--features=python-extension
- popd
- python setup.py develop
- - pywriter > /dev/null 2>&1
- - nosetests -v --processes=-1 --process-timeout=120
+ - nosetests -v --processes=-1 --process-timeout=120 -w src/