forked from scikit-build/scikit-build
-
Notifications
You must be signed in to change notification settings - Fork 0
/
scikit-ci.yml
66 lines (54 loc) · 1.78 KB
/
scikit-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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
schema_version: "0.5.0"
before_install:
appveyor:
environment:
PATH: $<PYTHON_DIR>;$<PYTHON_DIR>\\Scripts;$<PATH>
commands:
- python ../addons/appveyor/patch_vs2008.py
travis:
osx:
environment:
PATH: $<HOME>/.pyenv/versions/$<PYTHON_VERSION>/bin:$<PATH>
commands:
- python ../addons/travis/install_pyenv.py
azure:
Windows_NT:
commands:
- python: |
import os
paths = os.environ['PATH'].split(os.pathsep)
paths.remove('C:\\Program Files\\Git\\mingw64\\bin')
paths.remove('C:\\ProgramData\\Chocolatey\\bin')
paths.remove('C:\\Strawberry\\c\\bin')
os.environ['PATH'] = os.pathsep.join(paths)
import ci.driver
ci.driver.Driver.save_env(os.environ)
install:
commands:
- python -c "import os; from pprint import pprint as pp; pp(os.environ['PATH'].split(os.pathsep))"
- python -m pip install --disable-pip-version-check --upgrade pip
- pip install cmake
- pip install -r requirements.txt
- pip install -r requirements-dev.txt
circle:
commands:
- sudo apt-get update
- sudo apt-get install gfortran
before_build:
commands:
- flake8
build:
commands:
- python setup.py sdist
- python setup.py bdist_wheel
test:
commands:
- python setup.py test
after_test:
commands:
- python: |
import os, subprocess
if 'CODECOV_TOKEN' in os.environ and os.environ['CODECOV_TOKEN'] != '$(codecov_token)':
subprocess.check_call("codecov -X gcov --required --file ./tests/coverage.xml", shell=True)
else:
print("Skipping codecov: CODECOV_TOKEN env. variable is not set")