.gitlab-ci.yml 925 Bytes
Newer Older
1 2 3 4 5 6 7
cache:
  paths:
    - venv3/
    - venv2/
    - dist3/
    - dist2/

8 9 10 11 12 13
stages:
  - build
  - test

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

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
40
  - pip install dist3/*.whl
Isaak Lim's avatar
Isaak Lim committed
41 42 43 44
  - cd tests
  - python -m unittest discover

test-2.7:
45
  stage: test
Janis Born's avatar
Janis Born committed
46 47
  tags:
    - Linux
48 49
  variables:
    GIT_SUBMODULE_STRATEGY: recursive
Isaak Lim's avatar
Isaak Lim committed
50
  script:
51
  - source venv2/bin/activate
52
  - pip install dist2/*.whl
Isaak Lim's avatar
Isaak Lim committed
53 54
  - cd tests
  - python -m unittest discover