forked from aiidateam/aiida-quantumespresso
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
61 lines (48 loc) · 1.36 KB
/
.travis.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
dist: trusty
sudo: required
language: python
python:
- "2.7"
- "3.6"
cache: pip
services:
- rabbitmq
- postgresql
- docker
addons:
postgresql: "9.5"
apt:
packages:
- texlive-base
- texlive-generic-recommended
- texlive-fonts-recommended
- texlive-latex-base
- texlive-latex-recommended
- texlive-latex-extra
- dvipng
- dvidvi
before_install:
# This is needed for the SSH tests (being able to ssh to localhost)
# And will also be used for the docker test
- ssh-keygen -t rsa -N "" -f "${HOME}/.ssh/id_rsa"
- cp "${HOME}/.ssh/id_rsa.pub" "${HOME}/.ssh/authorized_keys"
- ssh-keyscan -H localhost >> "${HOME}/.ssh/known_hosts"
# Build the docker image if needed
- .ci/before_install.sh
install:
# Upgrade pip setuptools and wheel to be able to run the next command
- pip install -U pip==18.1 wheel setuptools reentry
# Install the repository with some optional dependencies
- pip install .[dev,docs]
env:
- TEST_TYPE="pre-commit"
- TEST_AIIDA_BACKEND=django TEST_TYPE="docs"
- TEST_AIIDA_BACKEND=django TEST_TYPE="tests"
- TEST_AIIDA_BACKEND=sqlalchemy TEST_TYPE="tests"
before_script:
- .ci/setup_profiles.sh
- .ci/before_script.sh
script:
- .ci/test_script.sh
git:
depth: 3