forked from zestedesavoir/zds-site
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
99 lines (73 loc) · 2.44 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
os: linux
dist: bionic
language: python
python:
- 3.7
services:
- memcached
- mysql
addons:
firefox: "latest"
apt:
packages:
- language-pack-fr
git:
depth: 1
env:
global:
- COVERALLS_PARALLEL: true
- secure: "azmDZZQZzf88zpbkYpLpxI66vpEVyv+kniW0QdWAt4qlys8P5OcO3VJBR5YT85vlvnjN9b6raWQAL1ymee0WmVdTmzXed8XjZv7t9QXVw7pfezxMKlEftVp/4Cu4wtvbew0ViZXNWV2hNXHzEqlhgnoIOq94i0UzZ7grMrI0xm0="
notifications:
webhooks: https://coveralls.io/webhook
jobs:
fast_finish: true
include:
- name: "Job 1 : tuto (zds.tutorialv2)"
env: ZDS_TEST_JOB="zds.tutorialv2"
- name: "Job 2 : backend test1 (zds.member zds.utils zds.forum zds.middlewares)"
env: ZDS_TEST_JOB="zds.member zds.utils zds.forum zds.middlewares"
- name: "Job 3 : backend test2 (zds.mp zds.gallery zds.pages zds.featured zds.notification zds.searchv2)"
env: ZDS_TEST_JOB="zds.mp zds.gallery zds.pages zds.featured zds.notification zds.searchv2"
- name: "Job 4 : frontend test"
env: ZDS_TEST_JOB="front fixture selenium"
- name: "Job 5 : doc"
env: ZDS_TEST_JOB="doc"
cache:
apt: true
pip: true
yarn: true
npm: true
directories:
- $HOME/.local/share/fonts
- $HOME/.texlive
- $HOME/.cache/pip
- $HOME/virtualenv/python$TRAVIS_PYTHON_VERSION/bin
- $HOME/build/zestedesavoir/zds-site/zdsenv
- $HOME/.nvm
- $HOME/node_modules
- $HOME/build/zestedesavoir/zds-site/node_modules
- $HOME/build/zestedesavoir/zds-site/zmd/node_modules
before_install:
- source ./scripts/travis_header.sh # Need to be sourced
install:
- ./scripts/install_zds.sh --answer-yes --detect-os-version --travis-output $zds_install_argument
script:
- source ./scripts/travis_run.sh
after_success:
- du -sh $HOME/.texlive 2>/dev/null | true
- |
# upload coverage
if [[ "$ZDS_TEST_JOB" != "none" && "$ZDS_TEST_JOB" != *"ci_turbo"* ]]; then
coveralls
fi
- |
# upload built documentation to GitHub Pages
if [[ "$ZDS_TEST_JOB" == *"doc"* ]] && [[ "$TRAVIS_BRANCH" == "dev" ]]; then
# Adding GitHub OAuth token to login
echo -e "machine github.com login $BOT_LOGIN\n password $BOT_PASSWORD" > $HOME/.netrc \
&& git config --global url."https://".insteadOf git:// \
&& git config --global user.name "Build bot" \
&& git config --global user.email "[email protected]" \
&& git config --global push.default simple \
&& ./scripts/push_doc.sh
fi