-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.gitlab-ci.yml
62 lines (56 loc) · 1.61 KB
/
.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
services:
- postgres:latest
variables:
POSTGRES_DB: testase
POSTGRES_USER: ase
POSTGRES_PASSWORD: "ase"
python_2_7_tests:
image: python:2.7
script:
- pip install numpy scipy matplotlib flask psycopg2-binary
# using "install from source" instructions
- export PATH=$PATH:$CI_PROJECT_DIR/bin
- echo $PATH
- export PYTHONPATH=$CI_PROJECT_DIR
- echo $PYTHONPATH
- python --version
- ase test --strict
# Check oldest supported Python with oldest supported libraries.
# Does not install any optional libraries except matplotlib.
# This test does not use the --strict flag because things like
# deprecation warnings may be rampant, yet these are only important
# for the future, not the past.
python_3_oldlibs_tests:
image: python:3.4-slim
script:
- pip install numpy==1.9.0 scipy==0.14.0 matplotlib==2.0.0
- pip install --no-deps .
- python --version
- ase test
# Check newest Python with all the standard dependencies at newest versions.
python_3_tests:
image: python:3-slim
script:
- pip install pyflakes psycopg2-binary netCDF4
- pip install .
- python --version
- ase test --strict
- cd $CI_PROJECT_DIR
- pyflakes ase doc
conda_tests:
image: continuumio/anaconda3
script:
- apt-get update
- apt-get install -yq libgl1-mesa-glx
- conda install -yq pip wheel numpy scipy pyflakes matplotlib flask
- pip install .
- python --version
- ase test --strict
docs_test:
image: python:3
script:
- pip install .[docs]
- ase info
- which sphinx-build
- cd $CI_PROJECT_DIR/doc
- sphinx-build -W . build