-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #31 from ccordoba12/fix-cis
PR: Fix continuous integration services
- Loading branch information
Showing
8 changed files
with
99 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
version: 2 | ||
|
||
main: &main | ||
machine: true | ||
steps: | ||
- checkout | ||
- run: | ||
command: docker pull dorowu/ubuntu-desktop-lxde-vnc:trusty | ||
- run: | ||
name: Install system packages | ||
command: | | ||
sudo apt-get -qq update | ||
sudo apt-get install -q libegl1-mesa | ||
- run: | ||
command: ./.circleci/install.sh | ||
- run: | ||
command: ./.circleci/run_tests.sh | ||
- run: | ||
command: ./.circleci/coverage.sh | ||
|
||
jobs: | ||
python2.7: | ||
<<: *main | ||
environment: | ||
- PYTHON_VERSION: "2.7" | ||
|
||
python3.5: | ||
<<: *main | ||
environment: | ||
- PYTHON_VERSION: "3.5" | ||
|
||
python3.6: | ||
<<: *main | ||
environment: | ||
- PYTHON_VERSION: "3.6" | ||
|
||
python3.7: | ||
<<: *main | ||
environment: | ||
- PYTHON_VERSION: "3.7" | ||
|
||
workflows: | ||
version: 2 | ||
build_and_test: | ||
jobs: | ||
- python2.7 | ||
- python3.5 | ||
- python3.6 | ||
- python3.7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
|
||
export COVERALLS_REPO_TOKEN="NFNNbVsb3wb3uBRYljg96R74lRiRRePIU" | ||
source $HOME/miniconda/etc/profile.d/conda.sh | ||
conda activate test | ||
|
||
coveralls |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/bash | ||
|
||
export TRAVIS_OS_NAME="linux" | ||
export CONDA_DEPENDENCIES_FLAGS="--quiet" | ||
export CONDA_DEPENDENCIES="line_profiler mock pytest spyder pytest-cov" | ||
export CONDA_DEPENDENCIES_FLAGS="-q" | ||
export PIP_DEPENDENCIES="coveralls pytest-qt" | ||
|
||
echo -e "PYTHON = $PYTHON_VERSION \n============" | ||
git clone git://github.com/astropy/ci-helpers.git > /dev/null | ||
source ci-helpers/travis/setup_conda_$TRAVIS_OS_NAME.sh | ||
source $HOME/miniconda/etc/profile.d/conda.sh | ||
conda activate test | ||
|
||
# Install the package in develop mode | ||
pip install -e . | ||
|
||
# Used by qthelpers to close widgets after a defined time | ||
export TEST_CI="True" | ||
export TEST_CI_APP="True" | ||
|
||
# Run Spyder to get it's config files | ||
spyder --reset | ||
spyder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
|
||
source $HOME/miniconda/etc/profile.d/conda.sh | ||
conda activate test | ||
|
||
# Run tests | ||
pytest -x -vv --cov=spyder_line_profiler spyder_line_profiler |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.