.gitlab-ci.yml 939 Bytes
Newer Older
1 2
cache:
  paths:
Isaak Lim's avatar
Isaak Lim committed
3 4 5 6
    - ./venv3/
    - ./venv2/
    - ./dist3/
    - ./dist2/
7

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
  - virtualenv --clear -p python3.5 ./venv3
Isaak Lim's avatar
Isaak Lim committed
20
  - source ./venv3/bin/activate
21
  - python setup.py bdist_wheel --dist-dir dist3
22 23 24 25 26 27 28 29 30

build-2.7:
  stage: build
  tags:
    - Linux
  variables:
    GIT_SUBMODULE_STRATEGY: recursive
  script:
  - virtualenv --clear -p python2.7 ./venv2
Isaak Lim's avatar
Isaak Lim committed
31
  - source ./venv2/bin/activate
32 33 34 35 36 37 38
  - python setup.py bdist_wheel --dist-dir dist2

test-3.5:
  stage: test
  tags:
    - Linux
  script:
Isaak Lim's avatar
Isaak Lim committed
39
  - 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