.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
    - virtualenv --clear -p python3.5 .
    - source bin/activate
Isaak Lim's avatar
Isaak Lim committed
16
17
18
19
    - python setup.py bdist_wheel --dist-dir dist3
  artifacts:
    paths:
      - dist3/
Isaak Lim's avatar
Isaak Lim committed
20

Isaak Lim's avatar
Isaak Lim committed
21
22
23
build-2.7:
  stage:
    build
Janis Born's avatar
Janis Born committed
24
25
  tags:
    - Linux
26
27
  variables:
    GIT_SUBMODULE_STRATEGY: recursive
Isaak Lim's avatar
Isaak Lim committed
28
  script:
Isaak Lim's avatar
Isaak Lim committed
29
30
    - virtualenv --clear -p python2.7 .
    - source bin/activate
Isaak Lim's avatar
Isaak Lim committed
31
32
33
34
35
36
37
38
39
40
41
42
43
    - python setup.py bdist_wheel --dist-dir dist2
  artifacts:
    paths:
      - dist2/

test-3.5:
  stage:
    test
  tags:
    - Linux
  dependencies:
    - build-3.5
  script:
Isaak Lim's avatar
Isaak Lim committed
44
45
46
    - virtualenv --clear -p python3.5 .
    - source bin/activate
    - pip install dist3/*.whl
Isaak Lim's avatar
Isaak Lim committed
47
48
49
50
51
52
53
54
55
56
57
    - cd tests
    - python -m unittest discover

test-2.7:
  stage:
    test
  tags:
    - Linux
  dependencies:
    - build-2.7
  script:
Isaak Lim's avatar
Isaak Lim committed
58
59
60
    - virtualenv --clear -p python2.7 .
    - source bin/activate
    - pip install dist2/*.whl
Isaak Lim's avatar
Isaak Lim committed
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
    - 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