1
- language : python
2
- python :
3
- - " 2.6"
4
- - " 2.7"
5
- - " 3.2"
6
- - " 3.3"
7
- - " 3.4"
8
- - " 3.5"
9
- - " 3.5-dev"
10
- - " nightly"
1
+ sudo : false
2
+
3
+ env :
4
+ global :
5
+ secure : kRjum2tZsaQZPnti27bc/ZIjYS1hftXTyuSWdq/6raRignORgbZMUc/RMXBz+ig8kiEVE3SFBZdapECGj+3Vb6Q6Vi4ypv8lR4rtJMTNITSOeM1KHHDCi6xLLGKrOsJ5ndkYHTNxuyIMGZu9Sv3TMcNqHcBChbZKT383OXgrxLA=
6
+
7
+ matrix :
8
+ include :
9
+ - os : osx
10
+ osx_image : xcode6.4
11
+ language : generic
12
+ env : ENABLE_LIBSPHINXAD=1 BUILD_WHEEL=true
13
+ - os : osx
14
+ osx_image : xcode8
15
+ language : generic
16
+ env : ENABLE_LIBSPHINXAD=1 BUILD_WHEEL=true
17
+ - os : osx
18
+ osx_image : xcode8.3
19
+ language : generic
20
+ env : ENABLE_LIBSPHINXAD=1 BUILD_WHEEL=true
21
+ - os : osx
22
+ osx_image : xcode9.3
23
+ language : generic
24
+ env : ENABLE_LIBSPHINXAD=1 BUILD_WHEEL=true
25
+ - os : linux
26
+ language : python
27
+ python : 2.7
28
+ env : ENABLE_LIBSPHINXAD=1
29
+ - os : linux
30
+ language : python
31
+ python : 3.5
32
+ env : ENABLE_LIBSPHINXAD=1
33
+ - os : linux
34
+ language : python
35
+ python : 3.6
36
+ env : ENABLE_LIBSPHINXAD=1 BUILD_SDIST=true
37
+
11
38
before_install :
12
- - sudo apt-get update -qq
13
- - sudo apt-get install -qq build-essential swig
39
+ - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
40
+ - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew reinstall swig python python@2; fi
41
+ - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export PATH=$HOME/Library/Python/3.6/bin:$PATH; fi
42
+ - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get update -qq; fi
43
+ - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install -y swig libpulse-dev libasound2-dev; fi
44
+
14
45
install :
15
- - python setup.py bdist_wheel build
16
- - python setup.py bdist_wheel build
17
- - pip install ./dist/pocketsphinx-*.whl
46
+ - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then python2 -m pip install --user --upgrade pip setuptools wheel twine; fi
47
+ - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then python3 -m pip install --user --upgrade pip setuptools wheel twine; fi
48
+ - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then python -m pip install --upgrade pip setuptools wheel twine; fi
49
+
18
50
script :
19
- - cd pocketsphinx/swig/python/test
20
- - python ./config_test.py
21
- - python ./decoder_test.py
22
- - python ./fsg_test.py
23
- - python ./jsgf_test.py
24
- - python ./kws_test.py
25
- - python ./lattice_test.py
26
- - python ./lm_test.py
51
+ - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then python2 setup.py test; fi
52
+ - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then python3 setup.py test; fi
53
+ - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then python setup.py test; fi
54
+
55
+ before_deploy :
56
+ - if [[ "$TRAVIS_OS_NAME" == "osx" && "$BUILD_SDIST" == "true" ]]; then python2 setup.py sdist; fi
57
+ - if [[ "$TRAVIS_OS_NAME" == "osx" && "$BUILD_WHEEL" == "true" ]]; then python2 setup.py bdist_wheel; fi
58
+ - if [[ "$TRAVIS_OS_NAME" == "osx" && "$BUILD_SDIST" == "true" ]]; then python3 setup.py sdist; fi
59
+ - if [[ "$TRAVIS_OS_NAME" == "osx" && "$BUILD_WHEEL" == "true" ]]; then python3 setup.py bdist_wheel; fi
60
+ - if [[ "$TRAVIS_OS_NAME" == "linux" && "$BUILD_SDIST" == "true" ]]; then python setup.py sdist; fi
61
+ - if [[ "$TRAVIS_OS_NAME" == "linux" && "$BUILD_WHEEL" == "true" ]]; then python setup.py bdist_wheel; fi
62
+
63
+ deploy :
64
+ provider : script
65
+ script : twine upload -u bambucha -p $PASSWORD dist/*
66
+ on :
67
+ tags : true
68
+ branch : master
69
+ condition : ' "$BUILD_SDIST" == "true" || "$BUILD_WHEEL" == "true"'
70
+ skip_cleanup : true
0 commit comments