.gitlab-ci.yml 1.39 KB
Newer Older
Isaak Lim's avatar
Isaak Lim committed
1
2
3
4
5
6
7
8
stages:
  - build
  - test
  - deploy

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

Isaak Lim's avatar
Isaak Lim committed
23
24
25
build-2.7:
  stage:
    build
Janis Born's avatar
Janis Born committed
26
27
  tags:
    - Linux
28
29
  variables:
    GIT_SUBMODULE_STRATEGY: recursive
Isaak Lim's avatar
Isaak Lim committed
30
  script:
Isaak Lim's avatar
Isaak Lim committed
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
    - virtualenv --clear -p python2.7 ./venv2
    - source ./venv2/bin/activate
    - python setup.py bdist_wheel --dist-dir dist2
    - pip install dist2/*.whl
  artifacts:
    paths:
      - dist2/
      - venv2/

test-3.5:
  stage:
    test
  tags:
    - Linux
  dependencies:
    - build-3.5
  script:
    - source ./venv3/bin/activate
    - cd tests
    - python -m unittest discover

test-2.7:
  stage:
    test
  tags:
    - Linux
  dependencies:
    - build-2.7
  script:
    - source ./venv2/bin/activate
    - cd tests
    - python -m unittest discover

deploy-3.5:
  stage:
    deploy
  tags:
    - Linux
  dependencies:
    - build-3.5
  script:
    - mkdir release
    - cp dist3/*.whl release
  artifacts:
    paths:
      - release/*.whl

deploy-2.7:
  stage:
    deploy
  tags:
    - Linux
  dependencies:
    - build-2.7
  script:
    - mkdir release
    - cp dist2/*.whl release
  artifacts:
    paths:
      - release/*.whl