.gitlab-ci.yml 856 Bytes
Newer Older
1 2 3 4 5 6
stages:
  - build
  - test

build-3.5:
  stage: build
Janis Born's avatar
Janis Born committed
7 8
  tags:
    - Linux
9 10
  variables:
    GIT_SUBMODULE_STRATEGY: recursive
Isaak Lim's avatar
Isaak Lim committed
11
  script:
12 13
  - virtualenv --clear -p python3.5 ./venv3
  - source venv3/bin/activate
14
  - python setup.py bdist_wheel --dist-dir dist3
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32

build-2.7:
  stage: build
  tags:
    - Linux
  variables:
    GIT_SUBMODULE_STRATEGY: recursive
  script:
  - virtualenv --clear -p python2.7 ./venv2
  - source venv2/bin/activate
  - python setup.py bdist_wheel --dist-dir dist2

test-3.5:
  stage: test
  tags:
    - Linux
  script:
  - source venv3/bin/activate
33
  - pip install dist3/*.whl
Isaak Lim's avatar
Isaak Lim committed
34 35 36 37
  - cd tests
  - python -m unittest discover

test-2.7:
38
  stage: test
Janis Born's avatar
Janis Born committed
39 40
  tags:
    - Linux
41 42
  variables:
    GIT_SUBMODULE_STRATEGY: recursive
Isaak Lim's avatar
Isaak Lim committed
43
  script:
44
  - source venv2/bin/activate
45
  - pip install dist2/*.whl
Isaak Lim's avatar
Isaak Lim committed
46 47
  - cd tests
  - python -m unittest discover