.gitlab-ci.yml 2.2 KB
Newer Older
1 2 3 4
stages:
  - test
  - deploy

Janis Born's avatar
Janis Born committed
5
test-3.6-VS2017:
6
  stage:
Janis Born's avatar
Janis Born committed
7
    test
8 9 10 11 12 13 14 15 16
  tags:
    - VS2017
  before_script:
    - git submodule sync --recursive
    - git submodule update --init --recursive
  script:
    - set Path=%Path%;C:\Program Files\Python36;C:\Program Files\Python36\Scripts;
    - virtualenv --clear -p "C:\Program Files\Python36\python.exe" .
    - call .\Scripts\activate
Janis Born's avatar
Janis Born committed
17
    - pip install -e .
18 19 20 21 22 23 24 25
    - cd ..\tests
    - python -m unittest discover

test-3.5-linux:
  stage:
    test
  tags:
    - Linux
Janis Born's avatar
Janis Born committed
26 27
  variables:
    GIT_SUBMODULE_STRATEGY: recursive
28 29 30
  script:
    - virtualenv --clear -p python3.5 .
    - source bin/activate
Janis Born's avatar
Janis Born committed
31
    - pip install -e .
32 33 34 35 36 37 38 39
    - cd tests
    - python -m unittest discover

test-3.5-macos:
  stage:
    test
  tags:
    - Apple
Janis Born's avatar
Janis Born committed
40 41
  variables:
    GIT_SUBMODULE_STRATEGY: recursive
42 43 44 45
  script:
    - export PATH=/opt/local/bin:$PATH
    - virtualenv --clear -p python3.5 .
    - source bin/activate
Janis Born's avatar
Janis Born committed
46
    - pip install -e .
47 48 49 50 51 52 53 54
    - cd tests
    - python -m unittest discover

test-2.7-linux:
  stage:
    test
  tags:
    - Linux
Janis Born's avatar
Janis Born committed
55 56
  variables:
    GIT_SUBMODULE_STRATEGY: recursive
57 58 59
  script:
    - virtualenv --clear -p python2.7 .
    - source bin/activate
Janis Born's avatar
Janis Born committed
60
    - pip install -e .
61 62 63 64 65 66 67 68
    - cd tests
    - python -m unittest discover

test-2.7-macos:
  stage:
    test
  tags:
    - Apple
Janis Born's avatar
Janis Born committed
69 70
  variables:
    GIT_SUBMODULE_STRATEGY: recursive
71 72 73 74
  script:
    - export PATH=/opt/local/bin:$PATH
    - virtualenv --clear -p python2.7 .
    - source bin/activate
Janis Born's avatar
Janis Born committed
75
    - pip install -e .
76 77 78
    - cd tests
    - python -m unittest discover

Janis Born's avatar
Janis Born committed
79
deploy-wheel:
80 81 82 83
  stage:
    deploy
  tags:
    - Linux
Janis Born's avatar
Janis Born committed
84 85
  variables:
    GIT_SUBMODULE_STRATEGY: recursive
86
  script:
Janis Born's avatar
Janis Born committed
87 88 89 90
    - virtualenv --clear -p python3.5 .
    - source bin/activate
    - python setup.py bdist_wheel --universal
    - cp dist/*.whl release
91 92 93 94 95 96 97 98 99
  artifacts:
    paths:
      - release/*.whl

deploy-documentation:
  stage:
    deploy
  tags:
    - Linux
Janis Born's avatar
Janis Born committed
100 101
  variables:
    GIT_SUBMODULE_STRATEGY: recursive
102 103 104
  script:
    - virtualenv --clear -p python3.5 .
    - source bin/activate
Janis Born's avatar
Janis Born committed
105
    - pip install -e .
106 107 108 109 110 111 112 113
    - pip install sphinx sphinx_rtd_theme
    - mkdir documentation
    - cd docs
    - make html
    - cp -r build/html/* ../documentation
  artifacts:
    paths:
      - documentation/