-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
74 lines (67 loc) · 2.43 KB
/
.travis.yml
File metadata and controls
74 lines (67 loc) · 2.43 KB
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# Mac/Linux: download and install miniconda via shell
# Windows: use chocolatey to install miniconda
matrix:
include:
- os : linux
language: python
python: "3.7"
# Travis secrets break Windows builds. When this issue is resolved, Windows builds should work.
# See https://travis-ci.community/t/choco-install-hangs-forever/307
# https://travis-ci.community/t/current-known-issues-please-read-this-before-posting-a-new-topic/264
# - os : windows
# language : shell
# python: "3.6"
- os : osx
python: "3.7"
language: generic
before_install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
elif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
wget https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh;
fi
install:
- if [[ "$TRAVIS_OS_NAME" != "windows" ]]; then
bash miniconda.sh -b -p $HOME/miniconda;
export PATH="$HOME/miniconda:$HOME/miniconda/bin:$PATH";
elif [[ "$TRAVIS_OS_NAME" == "windows" ]]; then
choco install miniconda3 --params="'/AddToPath:1'";
export PATH="/c/tools/miniconda3/scripts:/c/tools/miniconda3/:$PATH";
fi
- hash -r;
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- echo $TRAVIS_OS_NAME
- echo $TRAVIS_PYTHON_VERSION
# install pillow to work around a Windows issue: https://github.com/python-pillow/Pillow/issues/2945
- conda config --add channels conda-forge
- conda config --add channels pycalphad
- conda install 'pillow==6.2.1'
- conda install 'constructor>=2.2.0' 'pyyaml'
- constructor -V
script:
- "python configure.py"
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then
export BLD_PLTFRM="win-64";
elif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
export BLD_PLTFRM="osx-64";
elif [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
export BLD_PLTFRM="linux-64";
fi
- mkdir build
- echo "Starting build for $BLD_PLTFRM"
- constructor -v --output-dir=build --platform=$BLD_PLTFRM constructor
- ls build
after_sucess:
- echo "Build artifacts to be uploaded... `git ls-files -o --exclude-standard`"
notifications:
email: False
addons:
artifacts:
s3_region: "us-east-1" # defaults to "us-east-1"
paths:
- $(git ls-files -o --exclude-standard | tr "\n" ":")
target_paths:
- /
working_dir: build
permissions: public-read