Skip to content

Commit

Permalink
[MAINT] Migrate to CircleCI 2.0 (#39)
Browse files Browse the repository at this point in the history
* [MAINT] Migrate to CircleCI 2.0

* fix config.yml

* do not change workspace

* fix build

* fix web server

* fix web server
  • Loading branch information
oesteban authored Mar 13, 2018
1 parent eeab65d commit 449bb93
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 25 deletions.
48 changes: 48 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
version: 2
jobs:

build_and_test:
working_directory: /home/circleci/mriqcwebapi

machine:
image: circleci/classic:201711-01

environment:
- SECRET_KEY: CI
- MONGODB_HOST: mongodb
- MONGODB_PORT: 27017
- API_TOKEN: <secret_token>
- API_URL: "http://localhost/docs/api"

steps:
- checkout
- run:
name: Install dependencies
command: |
pip install docker-compose
pip install requests
- run:
name: Set-up dockereve
command: |
mkdir -p dockereve-master/nginx/.ssl
touch dockereve-master/nginx/.ssl/mriqcep.crt
touch dockereve-master/nginx/.ssl/mriqcep.key
docker pull mongo:latest
docker pull swaggerapi/swagger-ui:v3.0.12
docker pull nginx:latest
docker-compose -f dockereve-master/docker-compose.yml build
- run:
name: Start server
command: docker-compose -f dockereve-master/docker-compose.yml up -d
- run:
name: Test MRIQC WebAPI
command: python test/testGetPost.py

workflows:
version: 2
webapi:
jobs:
- build_and_test:
filters:
tags:
only: /.*/
25 changes: 0 additions & 25 deletions circle.yml

This file was deleted.

0 comments on commit 449bb93

Please sign in to comment.