forked from pairinteraction/pairinteraction
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
86 lines (83 loc) · 2.86 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
language: generic
matrix:
include:
- os: linux
sudo: required
services: docker
env:
- image=static-analysis
- os: linux
sudo: required
services: docker
env:
- image=debian
- os: osx
osx_image: xcode11
env:
- package=pairinteraction-install-osx.dmg
before_install:
- wget https://repo.continuum.io/miniconda/Miniconda3-4.3.11-MacOSX-x86_64.sh -O miniconda.sh
- chmod +x miniconda.sh && ./miniconda.sh -b -p $HOME/miniconda3 && source $HOME/miniconda3/bin/activate root
- wget https://github.com/pairinteraction/pairinteraction-build-dependencies/releases/download/1572947154/python-packages-osx.zip
- unzip python-packages-osx.zip
- conda config --prepend channels file:///$TRAVIS_BUILD_DIR/conda-export
- export HOMEBREW_NO_INSTALL_CLEANUP=1
- brew update
install:
- conda install -y -q nomkl pairinteraction-dependencies
- conda update -y -q setuptools wheel
- pip install twine git+https://github.com/pyinstaller/pyinstaller.git@5b6288b4e6c594dd695a2bd5db67aa260b771ce5 # TODO if new version that supports python 3.6 without bugs in conda-forge, specify version of pyinstaller and include pyinstaller in conda-export
- brew install gsl swig libomp
- npm install -g fileicon
before_script:
- export LDFLAGS="-Wl,-rpath,${CONDA_PREFIX}/lib"
- os: linux
sudo: required
services: docker
addons:
apt:
packages:
- python3-pip pyqt5-dev-tools
install:
- python3 -m pip install --user --upgrade setuptools 'twine<=1.13' # TODO if newest version of twine is working, install it
env:
- image=manylinux
- os: linux
sudo: required
services: docker
env:
- image=ubuntu
- package=pairinteraction-install-ubuntu-bionic.deb
before_deploy: sudo chown travis:travis $TRAVIS_BUILD_DIR/build/$package
- os: linux
sudo: required
services: docker
env:
- image=opensuse
- package=pairinteraction-install-opensuse.rpm
before_deploy: sudo chown travis:travis $TRAVIS_BUILD_DIR/build/$package
script:
- git fetch --unshallow --tags
- travis_wait 30 sleep infinity & ci/build_docker.sh
deploy:
- provider: releases
prerelease: true
api_key: $GH_TOKEN
file: $TRAVIS_BUILD_DIR/build/$package
skip_cleanup: true
overwrite: true
on:
tags: true
condition: $package != ""
- provider: script
script: bash ci/deploy_pypi.sh test
skip_cleanup: true
on:
tags: true
condition: $TRAVIS_REPO_SLUG != "pairinteraction/pairinteraction"
- provider: script
script: bash ci/deploy_pypi.sh real
skip_cleanup: true
on:
tags: true
condition: $TRAVIS_REPO_SLUG == "pairinteraction/pairinteraction"