
stages:
  - test

help_test_job:
  stage: test
  script:
    - scripts/AugmentLines.py -h
    - scripts/CsvToJson.py -h
    - scripts/GenerateConfigs.py -h
    - scripts/JsonToXml.py -h
    - scripts/Parallelize.py -h
    - scripts/RandomSleep.py -h
    - scripts/Template.py -h
    - scripts/WatchFiles.py -h
  only:
    - master

smoke_test_job:
  stage: test
  script:
    - scripts/RandomSleep.py 0 2
    #Not the most traditional use of this script, but since the "run ID" is 0,
    #it will make the random sleeps be between 0 and n seconds
    - scripts/Parallelize.py -p 2 -s 1 scripts/RandomSleep.py 0 4 2 3 3 4 3 2 3

    - scripts/check_config.sh
    - scripts/git
    - scripts/hg
  only:
    - master


stages:
  - test

help_test_job:
  stage: test
  script:
    - scripts/AugmentLines.py -h
    - scripts/CsvToJson.py -h
    - scripts/GenerateConfigs.py -h
    - scripts/JsonToXml.py -h
    - scripts/Parallelize.py -h
    - scripts/RandomSleep.py -h
    - scripts/Template.py -h
    - scripts/WatchFiles.py -h
  only:
    - master

smoke_test_job:
  stage: test
  script:
    - scripts/RandomSleep.py 0 2
    #Not the most traditional use of this script, but since the "run ID" is 0,
    #it will make the random sleeps be between 0 and n seconds
    - scripts/Parallelize.py -p 2 -s 1 scripts/RandomSleep.py 0 4 2 3 3 4 3 2 3

    #These should be commutative and idempotent when applied repeatedly
    #Original script starts with tabs
    - TEST_SCRIPT=scripts/Parallelize.py
    - cp $TEST_SCRIPT Test.py
    - scripts/SpacesToTabs.py Test.py
    - diff $TEST_SCRIPT Test.py
    - scripts/TabsToSpaces.py Test.py
    - "[ ! diff $TEST_SCRIPT Test.py ]"
    - scripts/SpacesToTabs.py Test.py
    - diff $TEST_SCRIPT Test.py
    - rm Test.py

    - scripts/check_config.sh
    - scripts/git
    - scripts/hg
  only:
    - master

Add spaces to tabs/tabs to spaces functional testing
Add spaces to tabs/tabs to spaces functional testing
