Skip to content

Commit 8bd01b1

Browse files
authored
Merge pull request #61 from ccordoba12/fix-cis
Fix errors in CI services
2 parents 17c7dab + ae1dd52 commit 8bd01b1

File tree

3 files changed

+19
-29
lines changed

3 files changed

+19
-29
lines changed

.travis.yml

+9-7
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,15 @@ matrix:
1515
- python: "2.7"
1616
env: USE_QT_API=PyQt4
1717
os: linux
18-
#- python: "2.7"
19-
# env: USE_QT_API=PySide
20-
# os: linux
18+
- python: "2.7"
19+
env: USE_QT_API=PySide
20+
os: linux
2121
- python: "3.4"
2222
env: USE_QT_API=PyQt4
2323
os: linux
24+
- python: "3.4"
25+
env: USE_QT_API=PyQt5
26+
os: linux
2427
- python: "3.5"
2528
env: USE_QT_API=PyQt5
2629
os: linux
@@ -56,12 +59,11 @@ install:
5659

5760
# Test environments for different Qt bindings
5861
- if [[ "$USE_QT_API" == "PyQt5" ]]; then
59-
conda config --add channels spyder-ide;
60-
conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION qt5 pyqt5;
62+
conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION qt=5.* pyqt=5.*;
6163
elif [[ "$USE_QT_API" == "PyQt4" ]]; then
62-
conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION qt pyqt;
64+
conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION qt=4.* pyqt=4.*;
6365
elif [[ "$USE_QT_API" == "PySide" ]]; then
64-
conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION qt pyside;
66+
conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION qt=4.* pyside;
6567
fi
6668
- source activate test-environment
6769
- python setup.py install

appveyor.yml

+9-8
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,6 @@ environment:
2222
CONDA_DEPENDENCIES: "qt=5.* pyqt=5.*"
2323
- PYTHON_VERSION: "2.7"
2424
CONDA_DEPENDENCIES: "qt=5.* pyqt=5.*"
25-
# PySide2
26-
# - PYTHON_VERSION: "3.5"
27-
# CONDA_DEPENDENCIES: "qt=5.* pyside2"
28-
# - PYTHON_VERSION: "3.4"
29-
# CONDA_DEPENDENCIES: "qt=5.* pyside2"
30-
# - PYTHON_VERSION: "2.7"
31-
# CONDA_DEPENDENCIES: "qt=5.* pyside2"
3225
# PyQt4
3326
- PYTHON_VERSION: "3.5"
3427
CONDA_DEPENDENCIES: "qt=4.* pyqt=4.*"
@@ -44,6 +37,15 @@ platform:
4437
-x64
4538

4639
install:
40+
# If there is a newer build queued for the same PR, cancel this one.
41+
# The AppVeyor 'rollout builds' option is supposed to serve the same
42+
# purpose but it is problematic because it tends to cancel builds pushed
43+
# directly to master instead of just PR builds (or the converse).
44+
# credits: JuliaLang developers.
45+
- ps: if ($env:APPVEYOR_PULL_REQUEST_NUMBER -and $env:APPVEYOR_BUILD_NUMBER -ne ((Invoke-RestMethod `
46+
https://ci.appveyor.com/api/projects/$env:APPVEYOR_ACCOUNT_NAME/$env:APPVEYOR_PROJECT_SLUG/history?recordsNumber=50).builds | `
47+
Where-Object pullRequestId -eq $env:APPVEYOR_PULL_REQUEST_NUMBER)[0].buildNumber) { `
48+
throw "There are newer queued builds for this pull request, failing early." }
4749
- "git clone git://github.com/astropy/ci-helpers.git"
4850
- "powershell ci-helpers/appveyor/install-miniconda.ps1"
4951
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
@@ -55,5 +57,4 @@ install:
5557
build: false
5658

5759
test_script:
58-
- "ciocheck qtawesome"
5960
- "%CMD_IN_ENV% python example.py"

circle.yml

+1-14
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ machine:
99
# Environment variables used by astropy helpers
1010
TRAVIS_OS_NAME: "linux"
1111
CONDA_DEPENDENCIES: "qtpy"
12-
PIP_DEPENDENCIES: "coveralls pytest-qt"
1312

1413
dependencies:
1514
override:
@@ -21,23 +20,11 @@ dependencies:
2120
source ci-helpers/travis/setup_conda_$TRAVIS_OS_NAME.sh &&
2221
export PATH="$HOME/miniconda/bin:$PATH" &&
2322
source activate test &&
24-
conda install ciocheck -c conda-forge &&
23+
conda install -q ciocheck -c spyder-ide &&
2524
python setup.py develop;
2625

2726
test:
2827
override:
2928
# Check style
3029
- export PATH="$HOME/miniconda/bin:$PATH" && source activate test && ciocheck qtawesome: # note the colon
3130
parallel: true
32-
# Check PyQt5
33-
- export PATH="$HOME/miniconda/bin:$PATH" && source activate test && conda install qt=5.* pyqt=5.* && python example.py: # note the colon
34-
parallel: true
35-
# Check PySide2
36-
# - export PATH="$HOME/miniconda/bin:$PATH" && source activate test && conda install qt=5.* pyside2 && python example.py: # note the colon
37-
# parallel: true
38-
# Check PyQt4
39-
- export PATH="$HOME/miniconda/bin:$PATH" && source activate test && conda install qt=4.* pyqt=4.* && python example.py: # note the colon
40-
parallel: true
41-
# Check Pyside
42-
- if [[ $TRAVIS_PYTHON_VERSION == 2.7 ]]; then export PATH="$HOME/miniconda/bin:$PATH" && source activate test && conda install qt=4.* pyside && && python example.py; fi: # note the colon
43-
parallel: true

0 commit comments

Comments
 (0)