-
Denis Arrivault authoredDenis Arrivault authored
.gitlab-ci.yml 1.16 KiB
# CI Config for ltaftpy / gitlab
stages:
- build
- test
- dist
# Global runner/docker image definition
image: ubuntu:latest
# Global caching
cache:
key: "cache"
paths:
# apt
- apt-cache
# build
- build
before_script:
- export APT_CACHE_DIR=`pwd`/apt-cache && mkdir -pv $APT_CACHE_DIR
- apt-get update -yq && apt-get -o dir::cache::archives="$APT_CACHE_DIR" install -y cmake libfftw3-dev
- apt-get -o dir::cache::archives="$APT_CACHE_DIR" install -y liblapack-dev python3.5 python3.5-dev python3-pip python3-tk
- pip3 install --upgrade pip
- pip3 install scipy matplotlib nose coverage cython
- pip3 list
# Main build
build:
stage: build
tags:
- docker
script:
- python3 setup.py install
# Tests
test:
stage: test
tags:
- docker
script:
- python3 setup.py test
artifacts:
when: always
untracked: true
paths:
- build/
expire_in: 8d
# Installation and test with pip
dist:
stage: dist
tags:
- docker
script:
- pip3 install -e .
- nosetests
artifacts:
when: always
untracked: true
paths:
- build/
expire_in: 8d
after_script:
- pip3 uninstall ltfatpy