pypsa-eur/.travis.yml

29 lines
734 B
YAML
Raw Normal View History

# SPDX-FileCopyrightText: : 2017-2020 The PyPSA-Eur Authors
#
# SPDX-License-Identifier: GPL-3.0-or-later
os:
- windows
- linux
- osx
2019-10-28 16:49:18 +00:00
language: bash
2019-10-28 16:49:18 +00:00
before_install:
2019-10-28 16:49:18 +00:00
# install conda
- wget https://raw.githubusercontent.com/trichter/conda4travis/latest/conda4travis.sh -O conda4travis.sh
- source conda4travis.sh
2019-10-28 16:49:18 +00:00
# install conda environment
- conda env create -f ./environment.yaml
- conda activate pypsa-eur
2019-10-28 16:49:18 +00:00
# install open-source solver
- conda install -c conda-forge ipopt glpk
2019-10-28 16:49:18 +00:00
script:
- cp ./test/config.test1.yaml ./config.yaml
- snakemake -j all solve_all_elec_networks
2019-10-28 16:49:18 +00:00
- rm -rf resources/*.nc resources/*.geojson resources/*.h5 networks results
# could repeat for more configurations in future