forked from threeML/threeML
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
54 lines (48 loc) · 3.22 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
language: generic
env:
global:
- secure: pkvNpm2ODc7INi5L8RqyqdVK73nN+WkQuTIzL52L+dcQIVaLqWupAK1zuBq6NeqQEgQcTvRFP5oCbsYLPYY5sBKpU/1WhS+UL9l9bmhYvYIgv1fyH7eH3PLuKEIGTaAVoMHFLStA+WHIuyK5UsmcZouVKn6vLQDK+XeZiyNxU3T2bONyabRDmc5JgdAjh4vdjrRupqq3CfZjaVCOnD+NBAYIHPZZnQc+9Dt6W9n9fjEO0B+2zi7NZEEP3dgeGsmws9M2wzbPJciWkFAOLBg66mPrSl7Vcl8KwVqWI9Wcb2/ogKU+CB0et4vwOdltBMdy29IRb0fxHrpP+sucHu32r9rWCAxdAXOdOgh5neYs/f8QSvk1BLaL1bNmMXe+APajFvukdxLUuYczX38rBjtXdrjrJRZ0Eyj8YK0g3r2HupbJ9FWM+adQKRYN2KV5yaqK6rpWa1/5XiNnfZYbQTbpdWSukNn48jTACDvhNwEDP9XeJ+CR7EOv4lc69wG+XHnv4Mr94TQvq9i4OKXCgh1kI7OGVNrcAyTX8sGDYlK4oc8TD0/aq7bzzGQmyBRQdEp2bKjVQo7lDE6g8baj+F1iw+8cfAJ1DjS/0brHTQpsTStBnWQWxEHOWtUitOKGoNkRxUaWgiAEq/npUr/UrrENPUuHsP1V48NXsG0vYLmr9mw=
- secure: KBR7yxM33eyTSAFEUpP55oS9fq2MzcM3hlPaXpYQXOOZUFMjpSbmeBnDA3CozPS8oMCPqL6cS/cOxPXb4/XhWvQLcib8LIh5+iX9wmqWcJkpXXaZGPqe8mZ5x57GlspFTMSV3VzSzE2cLbCzuaGhmMCgwuue0BJPPEAaKLmiPfdA/gS2O6VvsLssTP+QqHybd3oqZE6DFVU9FW9O0g1q8QPS0tiaft0BeMMvzOLONgBU0shEuQ9S+gdUH/8qpyD4Uh+t3SzcRSTG5mGIG9Ke2DPTo8LUfveEg3o5wOfj3hvEionOPdBFV96M7JwV0a5g6xEPk1NbV6s6BwPgSN2fwoVSdwzhD2kPVMFqEBX8TliQFVrrbpK1z8y+4nTdjLfPLf+KtHfE2Twj9bxb1TyO26M1l8Vq9lqIMfqHzgI04S75IiLLmmRXOQRCKAFb1xsqn2kIkwnctGDb8AHvMdk10qrD2Ww6qls0WAp3IWvMZED+i1M3nGQeO2x5vDQQNWIZsx/QR/nGl7dW68mF8LwyTuE0hJyGG+SjH3IHUTPQKqkhy85npYQpNihUPtQGqIL6LSBh5GYC5SjEH93FLkCoxRo9z5e4MOMy1KBZT+y4H5XvAxKYDz44/FZVzEYhRSZ3OJsn0FogsuJv+bvQlSxXBEt1x9yzn7Pl62Sm7yrr05o=
jobs:
include:
- os: linux
python: 3.7
env: TRAVIS_PYTHON_VERSION=3.7
- os: osx
python: 3.7
env: TRAVIS_PYTHON_VERSION=3.7
before_install:
- |
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
else
# Install Miniconda
wget https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh
fi
bash miniconda.sh -b -p $HOME/miniconda
export PATH="$HOME/miniconda/bin:$PATH"
conda install -y conda-build
conda config --add channels conda-forge
script:
- |2
if [[ "$TRAVIS_EVENT_TYPE" == "cron" ]]; then
# Workaround to avoid build timeout
while sleep 500; do
echo "====[ $SECONDS seconds still running ]===="
done &
# A cron build. We install 3ML as a user would do by using the install_3ML script
chmod u+x ci/cron_install_and_test.sh
./ci/cron_install_and_test.sh
else
chmod u+x ci/build_and_test.sh
./ci/build_and_test.sh
fi
deploy:
provider: pypi
user: "__token__"
distributions: sdist
skip_existing: true
on:
tags: true
password:
secure: Vb4TSGLjol1v1sb2Jh74N/kjiKUdb3aQlAsrQysBDORZ82zl79q/kEE8g3yYKBIzxTMGa/iS52Q4ZUpLALLNn5ADQEyNqGhem/ImmIQsRRw33S9yOS7upOJ5UvUPG3+oce8JWDWqSnOAupZUz9vTfaUiN6UrzKSuBwk4+WqK/c69P5nslsXo9PrmncEUiAP2DyDH6m2fNwqBQZdM8xFZLLO4YPTsnZotdWtYR6RAX2O4BWfOCA5acGj1p/XQwX91VQVJ4efC06bcjy6cYo9lkIumhkjaayhH21cFgxFhpg9hj8O9TbezXZ3N2kpGabDOtNsobZ8gcgEi9/LPvfsKCsI/HLBUSiPbyYOtbfvpL0xD0ZdCJYx+poST7k2A3Z8KK/YBkK2J4qH854YdIU9Jqyxp08I+Iyr566D72sGRmJXYJEXmjOqRwuULGO9sSjpbMJIFEUIEGVbcKO6YiZJmgYPeBsoxLzSKs2u+0ARapDisSeid1tkHgOzf9tMwjEe8eqOrOh9NUaC64ndoYPwzQwN0D7h+ZjYCehp2q2s9nJDoj1J8siBjlrOwP8hkMQqvrhWKJ0R7LJieBuNNQJY9mqBwZVTDdIT31uE3/IBgRWXwMjuiSWSYQynEgHY5ov259UYN4b+i93lHDztpgd+Ib0clYAS0bAIRLeINKG3hMzA=