travis mkdir resources if not existent

This commit is contained in:
FabianHofmann 2019-10-31 18:21:11 +01:00
parent 9ffc334001
commit b947c7893b

View File

@ -9,9 +9,10 @@ install:
- sudo apt-get install -yq --no-install-recommends curl bzip2 xz-utils git ca-certificates coinor-cbc - sudo apt-get install -yq --no-install-recommends curl bzip2 xz-utils git ca-certificates coinor-cbc
# download and extract data dependencies # download and extract data dependencies
- mkdir ./resources
- curl -L "https://zenodo.org/record/3517921/files/pypsa-eur-tutorial-data-bundle.tar.xz" -o "./bundle.tar.xz" - curl -L "https://zenodo.org/record/3517921/files/pypsa-eur-tutorial-data-bundle.tar.xz" -o "./bundle.tar.xz"
- curl -L "https://zenodo.org/record/3518020/files/pypsa-eur-tutorial-cutouts.tar.xz" -o "./cutouts.tar.xz" - curl -L "https://zenodo.org/record/3518020/files/pypsa-eur-tutorial-cutouts.tar.xz" -o "./cutouts.tar.xz"
- curl -L -N -s "https://zenodo.org/record/3518215/files/natura.tiff" -o "./resources/natura.tiff" - curl -L "https://zenodo.org/record/3518215/files/natura.tiff" -o "./resources/natura.tiff"
- tar xJf ./bundle.tar.xz -C ./data - tar xJf ./bundle.tar.xz -C ./data
- tar xJf ./cutouts.tar.xz -C . - tar xJf ./cutouts.tar.xz -C .