-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
59 lines (49 loc) · 2.05 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
sudo: false
language: minimal
git:
depth: false
jobs:
include:
- stage: test
before_install:
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
else
wget https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh;
fi;
- chmod +x miniconda.sh
- yes | ./miniconda.sh -b -p $HOME/miniconda
- export PYTHONUNBUFFERED=1
- export PATH="$HOME/miniconda/bin:$HOME/miniconda/lib:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- conda config --add channels https://conda.anaconda.org/dlr-sc
- source $HOME/miniconda/etc/profile.d/conda.sh
- conda create -n cpacs2to3_devel python=3.8 tigl3>=3.2.0 tigl-static tixi3 tixi numpy semver pytest
- conda activate cpacs2to3_devel
install: pip install -e . --user
script: pytest
- stage: deploy
before_install:
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
else
wget https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh;
fi;
- chmod +x miniconda.sh
- yes | ./miniconda.sh -b -p $HOME/miniconda
- export PYTHONUNBUFFERED=1
- export PATH="$HOME/miniconda/bin:$HOME/miniconda/lib:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- conda install conda-build gitpython anaconda-client
- conda config --add channels https://conda.anaconda.org/dlr-sc
- conda config --add channels https://conda.anaconda.org/dlr-sc/label/tigl-dev
script:
- if [ -n "$ANACONDA_API_TOKEN" ]; then
conda build ci/conda --user DLR-SC --token $ANACONDA_API_TOKEN;
else
conda build ci/conda;
fi;