forked from pyswmm/Stormwater-Management-Model
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
41 lines (35 loc) · 1.12 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# https://travis-ci.com/OpenWaterAnalytics/Stormwater-Management-Model/
matrix:
include:
- os: osx
language: generic
env: TRAVIS_PYTHON_VERSION=3.6
cache:
directories:
- $HOME/condacache/pkgs
- $HOME/.cache/pip
install:
# Use Astropy ci helpers for initial setup
- git clone git://github.com/astropy/ci-helpers.git
- source ci-helpers/travis/setup_conda_$TRAVIS_OS_NAME.sh
# Install dependencies for building with conda (latests versions)
- conda update -n root conda -q --no-pin
- conda install -n root conda-build anaconda-client -q --no-pin
- conda config --add pkgs_dirs ~/condacache/pkgs
- conda create -n format clangdev -c conda-forge
- conda-build conda.recipe
- conda install -n test libswmm --use-local
script:
# Check file format with clang
- source activate format
- conda info --json
- python tools/clangformatter.py src/
# Test built package
- source activate test
- conda info --json
- run-swmm --help
deploy:
- provider: script
script: "conda-build conda.recipe --user owa --token ${SWWM_CI_UPLOAD_TOKEN} --old-build-string"
on:
branch: develop