-
Notifications
You must be signed in to change notification settings - Fork 15
/
.travis.yml
61 lines (60 loc) · 3.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
language: python
matrix:
include:
- os: linux
python: 3.6.5
env:
- PYTHON=3.6.5
- BUILD_NAME=package-linux-x64
- DEPLOY_FILE="${TRAVIS_BUILD_DIR}/release/SCope-linux-x64.zip"
- RELEASE_NAME="SCope_Linux_x64"
script: echo "The script is a lie."
if: tag IS blank
- os: osx
osx_image: xcode8
language: generic
env:
- PYTHON=3.6.5
- BUILD_NAME=package-macOS-x64
- DEPLOY_FILE="${TRAVIS_BUILD_DIR}/release/SCope-macOS-x64.dmg"
- RELEASE_NAME="SCope_macOS_x64"
if: tag IS blank
before_install:
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then echo "Adding python for OSX"; brew install
openssl readline; brew outdated pyenv || brew upgrade pyenv; brew install pyenv-virtualenv;
PYTHON_CONFIGURE_OPTS="--enable-framework" pyenv install $PYTHON; export PYENV_VERSION=$PYTHON;
export PATH="/Users/travis/.pyenv/shims:${PATH}"; pyenv-virtualenv venv; source
venv/bin/activate; python --version; wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh
| bash; source ~/.bashrc; fi
- nvm install 10.3.0
- nvm use 10.3.0
install:
- npm install
- npm rebuild
- pip install pyinstaller
- cd ${TRAVIS_BUILD_DIR}
- VERSION=$(cat VERSION)
- npm run build
- cd opt/scopeserver/dataserver
- LD_LIBRARY_PATH=${VIRTUAL_ENV}/lib pyinstaller --onedir --hidden-import=scipy._lib.messagestream
--hidden-import=pandas._libs.tslibs.timedeltas --hidden-import=cytoolz.utils --hidden-import=cytoolz._signatures
--hidden-import=pandas._libs.tslibs.np_datetime --hidden-import=pandas._libs.tslibs.nattype
--hidden-import=pandas._libs.skiplist --exclude matplotlib --exclude IPython __init__.py
- cd ${TRAVIS_BUILD_DIR}
- npm run ${BUILD_NAME}
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then git clone https://github.com/andreyvit/yoursway-create-dmg.git;
./yoursway-create-dmg/create-dmg --volname "SCope Installer" --volicon "images/SCope_Icon.icns"
--background "images/SCope_Background.png" --window-pos 200 120 --window-size 800
400 --icon-size 100 --icon release/SCope-darwin-x64/SCope.app 192 344 --hide-extension
SCope.app --app-drop-link 448 344 ${TRAVIS_BUILD_DIR}/release/SCope-macOS-x64.dmg
release/SCope-darwin-x64/SCope.app/; else cd release; zip -r SCope-linux-x64.zip
SCope-linux-x64/; fi
deploy:
provider: releases
api_key:
secure: jN77FZYSJ9NlVzJZJ0cbx5JgimMOs1XuYHwoA4xgK/yHjkaxmhzEgGqf6BFKRSQU6WmONeFMTSzHNscwzuf5DtzwWSNnp6Wx+Fpfvjd+gGAp6k34HJ+OqLSxSEVuox5XWTa5w6UOBj7mphIcAtQMBH2gyOfinsNGYOew2vVVrMhk//7fyAN7KNy4umCL3d6uXUWnDSWRvOsUYRQHBIEvQrC6rcqz2HaQgxLrc5y4RsssUvPJpNFxKduuoMbKxc8igSfAFfmFt1o9jnfmR2jrHtsl5MN0IUHMdjn7Iy3Z4NHvCvOI+a+/StOydYml60kvva6zAdvjjLdxyr8lqziixkBhA2Ifiwy+/n/CD8p4LUEfA//bn7i0I4lBrah1sXZbEMxQTOmakrqcKrcOHuXUCESLfFSkraZ+rBKuiBkluoNniai1SAccE5TbM2wqV1zD1ueGywWiqTrsCtjcH0no5ZD6dYjicbQMeAgQbZ65sVtpC2pKx/MYp1FqLo74IAcGDTW/3K9nq6Pc20+GYboUIuTB8uzGNokCvs2lmyBekOKcm/20uhaA0V4F5s1xH87UaFDOXE9FEzFMgJHFh2HY7nNyMeQJhcq4BMZHIjcRVGClVueTzlcVaRfT4J4X8caVBrv3vBeLBaZWCbi+Qa4rt3stLRfCm0tOOq//YdUNuB0=
file: "${DEPLOY_FILE}"
skip_cleanup: true
on:
repo: aertslab/SCope
name: ${RELEASE_NAME}_v${VERSION}_CI