forked from aiidateam/aiida-registry
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
57 lines (48 loc) · 1.26 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
language: python
cache: pip
env:
global:
- ENCRYPTION_LABEL: "7712d5cd71ad"
- COMMIT_AUTHOR_EMAIL: [email protected]
matrix:
include:
- name: Build HTML
python: 3.7
env:
- JOB: HTML
- name: Install plugins (py27)
python: 2.7
env:
- JOB: INSTALL
- name: Install plugins (py37)
python: 3.7
env:
- JOB: INSTALL
- name: Run tests (py37)
python: 3.7
env:
- JOB: TEST
allow_failures:
- name: Install plugins (py27)
- name: Install plugins (py37)
install:
- pip install -e .[pre-commit]
- aiida-registry fetch # fetch plugin metadata
script:
- if [ "$JOB" == "HTML" ]; then aiida-registry html && cd .travis-data && ./deploy.sh; fi
- if [ "$JOB" == "INSTALL" ]; then aiida-registry test-install; fi
- if [ "$JOB" == "TEST" ]; then pytest tests/; fi
## See docs here: https://docs.travis-ci.com/user/deployment/pages/
## This works, but we're not using it to avoid to have global tokens.
## We use instead deployment keys as described here:
## https://gist.github.com/domenic/ec8b0fc8ab45f39403dd
#deploy:
# provider: pages
# skip_cleanup: true
# github_token: $GITHUB_TOKEN # Set in travis-ci.org dashboard
# on:
# branch: master
# target_branch: gh-pages
# local_dir: out
git:
depth: 3