neutrons / mantid_total_scattering

Implementing total neutron scattering data reduction using the Mantid Framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simplify Travis-CI

marshallmcdonnell opened this issue · comments

@ElliotAOram made a good suggestion to refactor the .travis.yml to look more like the following to clean it up:

sudo: required

language: python

services:
  - docker

before_install:
  - docker build -t unit-test-env -f docker/Dockerfile.test .
  - test_cmd = ./build/construct_test_command.sh

script:
  - docker run -t unit-test-env /bin/bash -c $test_cmd

Requires:

  • Writing the ./build/construct_test_command.sh script
  • Testing the Travis-CI prior to merge (on pull request or on branch with "Build on branch" enabled in Travis"