2020-05-29 07:50:55 +00:00
|
|
|
# SPDX-FileCopyrightText: : 2017-2020 The PyPSA-Eur Authors
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
2020-09-26 11:16:00 +00:00
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
|
2020-02-10 11:06:43 +00:00
|
|
|
os:
|
2019-11-07 14:39:23 +00:00
|
|
|
- windows
|
|
|
|
- linux
|
|
|
|
- osx
|
2019-10-28 16:49:18 +00:00
|
|
|
|
2019-11-07 14:39:23 +00:00
|
|
|
language: bash
|
2019-10-28 16:49:18 +00:00
|
|
|
|
2019-11-07 14:39:23 +00:00
|
|
|
before_install:
|
2019-10-28 16:49:18 +00:00
|
|
|
# install conda
|
2019-11-07 14:39:23 +00:00
|
|
|
- wget https://raw.githubusercontent.com/trichter/conda4travis/latest/conda4travis.sh -O conda4travis.sh
|
|
|
|
- source conda4travis.sh
|
2020-02-10 11:06:43 +00:00
|
|
|
|
2019-10-28 16:49:18 +00:00
|
|
|
# install conda environment
|
2020-09-25 12:08:46 +00:00
|
|
|
- conda install -c conda-forge mamba
|
2020-12-03 18:50:53 +00:00
|
|
|
- mamba env create -f ./envs/environment.yaml
|
2019-10-28 16:49:18 +00:00
|
|
|
- conda activate pypsa-eur
|
2020-02-10 11:06:43 +00:00
|
|
|
|
2019-10-28 16:49:18 +00:00
|
|
|
# install open-source solver
|
2020-12-04 17:53:12 +00:00
|
|
|
- mamba install -c conda-forge glpk ipopt'<3.13.3'
|
2020-09-25 12:08:46 +00:00
|
|
|
|
|
|
|
# list packages for easier debugging
|
|
|
|
- conda list
|
2019-10-28 16:49:18 +00:00
|
|
|
|
|
|
|
script:
|
|
|
|
- cp ./test/config.test1.yaml ./config.yaml
|
2020-12-05 16:54:50 +00:00
|
|
|
- snakemake -j all solve_all_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
|