.gitlab-ci.yml 440 Bytes
Newer Older
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
default:
  image: docker.io/emscripten/emsdk:latest

stages:
  - build
  - test

build:js:
  stage: build
  script:
    - ln -sf $(which python3) /usr/local/bin/python
    - make js
  artifacts:
    paths:
      - build/javascript
      - javascript/olm.js
      - javascript/olm.wasm
      - javascript/exported_functions.json

test:js:
  stage: test
  needs:
    - build:js
  script:
    - pushd javascript
    - npm i
    - npm run test