Skip to content

Commit

Permalink
Merge pull request #25 from jan-janssen/master
Browse files Browse the repository at this point in the history
Create working directory if it does not exist
  • Loading branch information
jan-janssen authored May 14, 2020
2 parents a8d0d3b + fd7e6d4 commit be32bfe
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
matrix:
include:
- stage: test
name: test_linux_2_7
name: test_linux_3_8
os: linux
language: python
env: MINICONDA="https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh" PYTHONVER="2.7"
env: MINICONDA="https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh" PYTHONVER="3.8"
install:
- export PATH="$HOME/miniconda/bin:$PATH"
- wget ${MINICONDA} -O miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda
- conda info -a
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- conda install -y -c conda-forge python=${PYTHONVER} coverage defusedxml=0.5.0 pandas=0.24.2 pyyaml=5.1.2 jinja2=2.10.1 paramiko=2.4.2 tqdm=4.35.0
- conda install -y -c conda-forge python=${PYTHONVER} coverage "defusedxml>=0.5.0" "pandas>=0.24.2" "pyyaml>=5.1.2" "jinja2>=2.10.1" "paramiko>=2.4.2" "tqdm>=4.35.0"
- pip install --pre .
script:
- coverage run -m unittest discover tests
Expand Down Expand Up @@ -52,18 +52,18 @@ matrix:
on:
tags: true

- name: test_osx_2_7
- name: test_osx_3_8
os: osx
language: generic
env: MINICONDA="https://repo.continuum.io/miniconda/Miniconda2-latest-MacOSX-x86_64.sh" PYTHONVER="2.7"
env: MINICONDA="https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh" PYTHONVER="3.8"
install:
- export PATH="$HOME/miniconda/bin:$PATH"
- wget ${MINICONDA} -O miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda
- conda info -a
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- conda install -y -c conda-forge python=${PYTHONVER} coverage defusedxml=0.5.0 pandas=0.24.2 pyyaml=5.1.2 jinja2=2.10.1 paramiko=2.4.2 tqdm=4.35.0
- conda install -y -c conda-forge python=${PYTHONVER} coverage "defusedxml>=0.5.0" "pandas>=0.24.2" "pyyaml>=5.1.2" "jinja2>=2.10.1" "paramiko>=2.4.2" "tqdm>=4.35.0"
- pip install --pre .
script:
- coverage run -m unittest discover tests
Expand Down
2 changes: 2 additions & 0 deletions pysqa/basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,8 @@ def _write_queue_script(
run_time_max=run_time_max,
command=command,
)
if not os.path.exists(working_directory):
os.makedirs(working_directory)
queue_script_path = os.path.join(working_directory, "run_queue.sh")
with open(queue_script_path, "w") as f:
f.writelines(queue_script)
Expand Down

0 comments on commit be32bfe

Please sign in to comment.