1 |
|
2 |
|
3 |
|
4 | stages:
|
5 | - test
|
6 | - trads
|
7 |
|
8 |
|
9 |
|
10 |
|
11 | .test_template: &test_definition
|
12 | stage: test
|
13 | script:
|
14 | - npm install
|
15 | - npm run lint
|
16 | - npm run test
|
17 | - npm run test-ldap
|
18 | retry: 2
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 | services:
|
25 | - rroemhild/test-openldap
|
26 |
|
27 |
|
28 |
|
29 |
|
30 |
|
31 |
|
32 |
|
33 | test_node_latest:
|
34 | image: node:latest
|
35 | <<: *test_definition
|
36 |
|
37 | test_node_4:
|
38 | image: node:4-stretch
|
39 | <<: *test_definition
|
40 |
|
41 | test_node_6:
|
42 | image: node:6-stretch
|
43 | <<: *test_definition
|
44 |
|
45 | test_node_8:
|
46 | image: node:8-stretch
|
47 | <<: *test_definition
|
48 |
|
49 | test_node_9:
|
50 | image: node:9-stretch
|
51 | <<: *test_definition
|
52 |
|
53 | test_node_10:
|
54 | image: node:10-stretch
|
55 | <<: *test_definition
|
56 |
|
57 |
|
58 |
|
59 | trads:
|
60 | stage: test
|
61 | image: framasoft/push-trad:latest
|
62 | script:
|
63 | - sed -e "s@<project-version>.*</project-version>@<project-version>$CI_COMMIT_REF_SLUG</project-version>@" -i zanata.xml
|
64 | - if [ ! -z ${ZANATA_CONFIG_FRAMABOT+x} ]; then mkdir -p ${HOME}/.config; echo -e "${ZANATA_CONFIG_FRAMABOT}" > ${HOME}/.config/zanata.ini; fi
|
65 | - if [ ! -z ${ZANATA_CONFIG_FRAMABOT+x} ]; then make push-locales; fi
|
66 | only:
|
67 | - development
|
68 | - master
|