diff options
| author | 2018-06-06 14:38:35 +0100 | |
|---|---|---|
| committer | 2018-06-06 14:38:35 +0100 | |
| commit | e2595aa0d834f31c904e325f4adbe6f30e02110d (patch) | |
| tree | 42baedd4d696d8418b5d65fe41898585f37d664b | |
| parent | Merge remote-tracking branch 'origin/master' (diff) | |
[CI] Add GitLab CI YAML
| -rw-r--r-- | .gitlab-ci.yml | 39 | ||||
| -rw-r--r-- | .travis.yml | 40 | 
2 files changed, 39 insertions, 40 deletions
| diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 00000000..19f09095 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,39 @@ +image: python:3.6-alpine3.7 + +variables: +  - PIPENV_VENV_IN_PROJECT: 1 +  - PIPENV_IGNORE_VIRTUALENVS: 1 +  - RABBITMQ_HOST: localhost + +services: +  - docker:dind + +  - name: rabbitmq:3.7.5-alpine +    alias: rabbit + +  - name: rethinkdb:2.3.6 +    alias: rethinkdb + + +before_script: +  - apk add --update ruby +  - pip install pipenv +  - pipenv sync --dev --three +  - gem install scss_lint + +stages: +  - test +  - build + +test: +  stage: test +  script: +    - pipenv run lint +    - pipenv run lintscss +    - pipenv run python gunicorn_config.py +    - pipenv run test + +build: +  stage: build +  script: +    - sh scripts/deploy.sh diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index c13620e3..00000000 --- a/.travis.yml +++ /dev/null @@ -1,40 +0,0 @@ -language: python -python: -  - "3.6" - -addons: -  rethinkdb: "2.3" - -branches: -  only: -    - "master" - -sudo: required - -services: -  - docker -  - rabbitmq - -env: -  global: -    - PIPENV_VENV_IN_PROJECT=1 -    - PIPENV_IGNORE_VIRTUALENVS=1 -    - RABBITMQ_HOST=localhost - -install: -  - pip install pipenv -  - pipenv sync --dev --three -  - gem install scss_lint -script: -  - pipenv run lint -  - pipenv run lintscss -  - pipenv run python gunicorn_config.py -  - pipenv run test -#  - pipenv run coveralls -after_success: -  - bash scripts/deploy.sh - -cache: pip - -notifications: -  email: false | 
