UNPKG

1.29 kBYAMLView Raw
1### Stages
2##
3#
4stages:
5 - test
6 - trads
7
8### Jobs template
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### Services
21##
22# Bring in any services we need
23# http://docs.gitlab.com/ee/ci/docker/using_docker_images.html#what-is-a-service
24services:
25 - rroemhild/test-openldap
26
27### Jobs
28##
29#
30
31## Tests
32#
33test_node_latest:
34 image: node:latest
35 <<: *test_definition
36
37test_node_4:
38 image: node:4-stretch
39 <<: *test_definition
40
41test_node_6:
42 image: node:6-stretch
43 <<: *test_definition
44
45test_node_8:
46 image: node:8-stretch
47 <<: *test_definition
48
49test_node_9:
50 image: node:9-stretch
51 <<: *test_definition
52
53test_node_10:
54 image: node:10-stretch
55 <<: *test_definition
56
57## Trads
58# Push new translations strings to https://trad.framasoft.org
59trads:
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