pd-accept-draft-pr Merge branch 'master' into pd-accept-draft-pr

Push event #1251.1 passed

  • Ran for
AMD64
no language set
Git
language: ruby
sudo: false

services:
  - postgresql

addons:
  postgresql: "9.6"

cache:
  directories:
    - vendor/bundle

rvm: "2.5.1"

env:
  - RAILS_ENV=test

script:
  - bundle exec rspec spec
  - script/validate_structure_file.rb db/main/structure-original.sql

before_script:
  - cp db/main/structure.sql db/main/structure-original.sql
  - cp config/database.yml.travis config/database.yml

after_success:
  - script/upload_structure.rb
4dn-dcic/foursight:.travis.yml@99dc002
language: python
sudo: false
python:
- '3.6'
install:
- pip install poetry
- poetry install
- pip install coveralls
script:
- pytest --cov chalicelib tests
after_success:
- coveralls
- echo $TRAVIS_PULL_REQUEST
- echo $TRAVIS_BRANCH
- echo $TRAVIS_PYTHON_VERSION
- |
  if [[ $TRAVIS_PULL_REQUEST == 'false' && $TRAVIS_PYTHON_VERSION == '3.6' ]]; then
    if [[ $TRAVIS_BRANCH == 'production' ]]; then
      echo 'Tests succeeded! Deploying to prod stage.';
      python -m deploy prod;
    fi
  else
    echo 'Tests succeeded, but this is not the time for deployment.';
  fi
  if  [[ $TRAVIS_BRANCH == 'master' ]]; then
    echo 'Triggering docs build';
    curl -X POST -d "branches=master" -d "token=$DOCS_TOKEN" https://readthedocs.org/api/v2/webhook/foursight/99531/;
  fi
Build Config
{
  "os": [
    "linux"
  ],
  "env": {
    "matrix": [
      {
        "RAILS_ENV": "test"
      }
    ]
  },
  "rvm": [
    "2.5.1"
  ],
  "sudo": false,
  "cache": {
    "directories": [
      "vendor/bundle"
    ]
  },
  "addons": {
    "postgresql": "9.6"
  },
  "script": [
    "bundle exec rspec spec",
    "script/validate_structure_file.rb db/main/structure-original.sql"
  ],
  "language": "ruby",
  "services": [
    "postgresql"
  ],
  "after_success": [
    "script/upload_structure.rb"
  ],
  "before_script": [
    "cp db/main/structure.sql db/main/structure-original.sql",
    "cp config/database.yml.travis config/database.yml"
  ]
}