Skip to content

Commit

Permalink
ci: migrate to circleci
Browse files Browse the repository at this point in the history
  • Loading branch information
Qingping Hou authored and jrgp committed May 30, 2017
1 parent d5e0bb7 commit 37a73cd
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 32 deletions.
2 changes: 0 additions & 2 deletions .ci/after_success.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#!/bin/bash
set -e

pushd ${TRAVIS_BUILD_DIR}

# Kill the `make serve` executed prior to this, so the e2e coverage tests
# will properly run. The sender will still be alive.
killall -9 gunicorn
Expand Down
10 changes: 4 additions & 6 deletions .ci/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,10 @@ echo "[*] spin up mysql..."
bash ${CI_DIR}/run_mysql_docker.sh

echo "[*] install iris-relay dependencies..."
pushd ${TRAVIS_BUILD_DIR}
echo "[*] installing app dependencies..."
travis_retry python setup.py develop
echo "[*] pip installing dev_requirements.txt..."
travis_retry pip install -r dev_requirements.txt
popd
echo "[*] installing app dependencies..."
travis_retry python setup.py develop
echo "[*] pip installing dev_requirements.txt..."
travis_retry pip install -r dev_requirements.txt

echo "[*] spin up iris api..."
docker run -d -p 16649:16649 \
Expand Down
2 changes: 0 additions & 2 deletions .ci/script.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#!/bin/bash
set -e

pushd ${TRAVIS_BUILD_DIR}
make serve &
make check
popd
22 changes: 0 additions & 22 deletions .travis.yml

This file was deleted.

16 changes: 16 additions & 0 deletions circle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
machine:
services:
- docker
python:
version: 2.7.11

dependencies:
override:
# stop mysql server in favor of our own docker mysql
- sudo service mysql stop
- bash .ci/install.sh

test:
override:
- bash .ci/script.sh
- bash .ci/after_success.sh || echo "coverage collection failed"

0 comments on commit 37a73cd

Please sign in to comment.