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

build-3.5:
  stage: build
Isaak Lim's avatar
Isaak Lim committed
7 8 9 10 11 12
  cache:
    key: wheel3
    paths:
      - ./venv3
      - ./dist3
    policy: push
Janis Born's avatar
Janis Born committed
13 14
  tags:
    - Linux
15 16
  variables:
    GIT_SUBMODULE_STRATEGY: recursive
Isaak Lim's avatar
Isaak Lim committed
17
  script:
18
  - virtualenv --clear -p python3.5 ./venv3
Isaak Lim's avatar
Isaak Lim committed
19
  - source ./venv3/bin/activate
20
  - python setup.py bdist_wheel --dist-dir dist3
Isaak Lim's avatar
Isaak Lim committed
21
  - pip install dist3/*.whl
22 23 24

build-2.7:
  stage: build
Isaak Lim's avatar
Isaak Lim committed
25 26 27 28 29 30
  cache:
    key: wheel2
    paths:
      - ./venv2
      - ./dist2
    policy: push  
31 32 33 34 35 36
  tags:
    - Linux
  variables:
    GIT_SUBMODULE_STRATEGY: recursive
  script:
  - virtualenv --clear -p python2.7 ./venv2
Isaak Lim's avatar
Isaak Lim committed
37
  - source ./venv2/bin/activate
38
  - python setup.py bdist_wheel --dist-dir dist2
Isaak Lim's avatar
Isaak Lim committed
39
  - pip install dist2/*.whl
40 41 42

test-3.5:
  stage: test
Isaak Lim's avatar
Isaak Lim committed
43 44 45 46 47 48
  cache:
    key: wheel3
    paths:
      - ./venv3
      - ./dist3
    policy: pull  
49 50 51
  tags:
    - Linux
  script:
Isaak Lim's avatar
Isaak Lim committed
52
  - source ./venv3/bin/activate
Isaak Lim's avatar
Isaak Lim committed
53 54 55 56
  - cd tests
  - python -m unittest discover

test-2.7:
57
  stage: test
Isaak Lim's avatar
Isaak Lim committed
58 59 60 61 62 63
  cache:
    key: wheel2
    paths:
      - ./venv2
      - ./dist2
    policy: pull
Janis Born's avatar
Janis Born committed
64 65
  tags:
    - Linux
66 67
  variables:
    GIT_SUBMODULE_STRATEGY: recursive
Isaak Lim's avatar
Isaak Lim committed
68
  script:
Isaak Lim's avatar
Isaak Lim committed
69
  - source ./venv2/bin/activate
Isaak Lim's avatar
Isaak Lim committed
70 71
  - cd tests
  - python -m unittest discover