-
Notifications
You must be signed in to change notification settings - Fork 7
/
.gitlab-ci.yml
37 lines (33 loc) · 912 Bytes
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
before_script:
# Install pyenv
- apt-get update
- apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev xz-utils tk-dev
- git clone https://github.com/pyenv/pyenv.git ~/.pyenv
- export PYENV_ROOT="$HOME/.pyenv"
- export PATH="$PYENV_ROOT/bin:$PATH"
- eval "$(pyenv init -)"
- export CFLAGS=-I/usr/include/openssl
- export LDFLAGS=-L/usr/lib
# Install tox
- pip install tox
test:python27:
script:
- pyenv install 2.7.14
- pyenv shell 2.7.14
- tox -e py27-normal
test:python34:
script:
- apt-get install -y libssl1.0-dev
- pyenv install 3.4.7
- pyenv shell 3.4.7
- tox -e py34-normal
test:python35:
script:
- pyenv install 3.5.4
- pyenv shell 3.5.4
- tox -e py35-normal
test:python36:
script:
- pyenv install 3.6.4
- pyenv shell 3.6.4
- tox -e py36-normal