Skip to content
This repository has been archived by the owner on Feb 6, 2023. It is now read-only.

Commit

Permalink
Merge pull request #253 from disktnk/test/plain-ci-job
Browse files Browse the repository at this point in the history
Add plain install job on CI
  • Loading branch information
ofk authored Feb 1, 2019
2 parents 5fb1071 + 9891698 commit 8ac3b3d
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 11 deletions.
35 changes: 25 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,24 @@
language: python
python:
- "2.7"
- "3.5"
- "3.6"

matrix:
include:
- name: "Ubuntu14.04 Py27"
dist: trusty
python: "2.7"
- name: "Ubuntu16.04 Py35"
dist: xenial
python: "3.5"
- name: "Ubuntu16.04 Py36, plain install"
dist: xenial
python: "3.6"
env:
- CHAINERUI_PLAIN_INSTALL=1
- name: "Ubuntu16.04 Py36"
dist: xenial
python: "3.6"
env:
- CHAINERUI_COVERAGE_REPORT=1
- CHAINERUI_DEPLOY_JOB=1

services:
- docker
Expand All @@ -15,7 +31,7 @@ sudo: false
before_install:
- pip install autopep8 hacking
- pip install -U pytest pytest-cov coveralls
- pip install Pillow matplotlib scipy chainer
- if [[ $CHAINERUI_PLAIN_INSTALL != 1 ]]; then pip install Pillow matplotlib scipy chainer; else pip install numpy; fi
- if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then pip install mock; fi
- npm install -g npm@6
- npm -v
Expand All @@ -29,8 +45,7 @@ install:
script:
# python style check
- flake8
- autopep8 -r . --global-config .pep8 --diff | tee check_autopep8
- test ! -s check_autopep8
- autopep8 -r . --global-config .pep8 --diff --exit-code
# frontend style check
- pushd frontend
- npm run lint
Expand All @@ -44,21 +59,21 @@ script:
- pytest --cov=chainerui

after_success:
- if [[ $TRAVIS_PYTHON_VERSION == '3.6' ]]; then COVERALLS_TOKEN=$COVERALLS_TOKEN coveralls; fi
- if [[ $CHAINERUI_COVERAGE_REPORT == 1 ]]; then COVERALLS_TOKEN=$COVERALLS_TOKEN coveralls; fi

deploy:
- provider: pypi
user: $PYPI_MAINTAINER_NAME
password: $PYPI_MAINTAINER_PASS
on:
tags: true
python: 3.6
condition: $CHAINERUI_DEPLOY_JOB == 1
allow_failure: false
skip_cleanup: true
- provider: script
script: bash .travis/docker_push.sh
on:
tags: true
python: 3.6
condition: $CHAINERUI_DEPLOY_JOB == 1
allow_failure: false
skip_cleanup: true
4 changes: 3 additions & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,16 @@ environment:
- PYTHON: "C:\\Python27-x64"
- PYTHON: "C:\\Python35-x64"
- PYTHON: "C:\\Python36-x64"
CHAINERUI_PLAIN_INSTALL: 1
- PYTHON: "C:\\Python36-x64"

install:
- set PATH=%PYTHON%;%PYTHON%\Scripts;%PATH%
- python --version
- pip --version

- pip install -U pytest pytest-cov mock
- pip install Pillow matplotlib scipy chainer
- if "%CHAINERUI_PLAIN_INSTALL%"=="1" (pip install numpy) else (pip install Pillow matplotlib scipy chainer)

# Update Node.js
- ps: Install-Product node $env:nodejs_version
Expand Down

0 comments on commit 8ac3b3d

Please sign in to comment.