.gitlab-ci.yml 784 Bytes
Newer Older
1
2
include:
  - project: pole-is/tools/ci-config
Guillaume Perréal's avatar
CS yml.    
Guillaume Perréal committed
3
    ref: '4.0.0'
4
5
6
7
    file:
      - /defaults.yml
      - /php/package.yml
      - /nodejs/base.yml
8
9
10
11
12

stages:
  - vendor
  - test
  - test-generated
Guillaume Perréal's avatar
Guillaume Perréal committed
13

14
variables:
Guillaume Perréal's avatar
CS yml.    
Guillaume Perréal committed
15
16
  PHP_VERSION: '7.1'
  NODEJS_TEST_BROWSER_PACKAGES: ''
17

18
19
test:console:
  extends: .php-test
20
21
22

test:generate:
  extends: .php-test
23
24
25
26
  artifacts:
    name: generated-typescript
    paths:
      - output/
27

28
29
30
31
32
33
34
35
36
37
npm:build:
  extends: .nodejs
  needs:
    - node_modules
    - npm run-script build
  artifacts:
    name: built-library
    paths:
      - dist/

38
test:compile-generated:
39
40
  stage: test-generated
  extends: .nodejs
41
  needs:
42
    - node_modules
43
    - npm:build
44
45
    - test:generate
  script:
46
47
    - npm install -g npm
    - npm --version
48
    - npm run-script test:compile-generated