-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy path.travis.yml
53 lines (53 loc) · 4.03 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
language: python
python:
- "2.7"
- "3.6"
- "3.7-dev"
services:
- docker
# command to install dependencies
addons:
apt:
packages:
- libblas-dev
- liblapack-dev
- libatlas-base-dev
- libopenblas-base
- libopenblas-dev
- gfortran
- openjdk-8-jdk
- maven
install:
- pip install codecov
- pip install -r requirements.txt
- pip install -r test_requirements.txt
before_install:
- git clone --depth 1 https://github.com/saalfeldlab/render.git render -b master
- export JAVA_HOME="/usr/lib/jvm/java-8-openjdk-amd64/jre"
- mvn -version
- mvn package -pl render-ws-java-client -am -DskipTests -f render/pom.xml
- export RENDER_CLIENT_JAR=`readlink -m $TRAVIS_BUILD_DIR/render/render-ws-java-client/target/render-ws-java-client-*-standalone.jar`
- export RENDER_WS_JAVA_CLIENT_EXAMPLE_DATA=`readlink -m $TRAVIS_BUILD_DIR/render/render-ws-java-client/src/main/resources`
- export RENDER_APP_EXAMPLE_DATA=`readlink -m $TRAVIS_BUILD_DIR/render/render-app/src/test/resources`
- export RENDER_JAVA_HOME=$JAVA_HOME
- mkdir -p /tmp/example_1 && cp -R $RENDER_WS_JAVA_CLIENT_EXAMPLE_DATA/example_1 /tmp/.
- cp -R $RENDER_APP_EXAMPLE_DATA/* /tmp/.
- export RENDER_EXAMPLE_DATA=/tmp
- echo "$DOCKER_PASSWORD" | docker login --username "$DOCKER_USERNAME" --password-stdin
- docker-compose up -d
env:
global:
- RENDER_HOST=localhost RENDER_PORT=8080 RENDER_CLIENT_SCRIPTS=$TRAVIS_BUILD_DIR/render/render-ws-java-client/src/main/scripts
- secure: "AZCuswnHLEvDkfcmijSb4sy1E0vCg3nHn8gk9EvO7z9JeJG4FtHYBW3bLiN4WSjxszzaCK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kNxM1C9k3OF6OlAC//5jWi4hjeoc2L8LpR09Cxm7PCtBvqbCNO2mPhv+h4dsFzmlyN2JL34lQyfzD1v1Jqz4ifJHYupKKtIdA7UiU+RU40ylDzTKfvlI63MkUwxS2u4BY0Gc5WWy/NoJuF6F39c+peoLgcoHiKnXoIvTyWCNSfieXCnuiHrU7nLnijM9qzSZxM6a43KiSGRZAQInQUXzKX5a7cGHaQIFskd3TK71emnhdewM40="
- secure: "UucVIVQCg9T2d9NiSdMirj37nlwWEyZi2mybzNNVJ8TMfC05Vz+E/b/1ByxOLpUYmXZTzU22Xx316ueIaIk05L+Q8q4Dy1S/spaKBNcJQ8kDxlcD7y0YBPX+QqyOpXCnB1Kt1oawy92g2qALFDMBoupr7xT8aTvCwDigrJYghMiVM1RVlQQAJBaGkB32qs934uQeknvLqSZV35BTFGHTaqJoWV8OyxNwOZFtf5Z8gdWxrAYHOQg9iW+5CP+zLhybROLrMuI5vhj/yvP2I07Scx+jMKOgGw7snPygHpwR0dNw/NvNdy+XIx3zqUlts5Bb1nqCeaNzNouXd1D5NHoqsw/0VLt/HcbCxUKXuaViJy5KfN/qi9U7lSJ0KC2qazwsQXviFYTrT2q1U2n6zlV/CC9e1sLjQmIF3GAysFD3Fcg88Qz/3aZKl6nkqP/T2Y1t/FOPjBSD5ytlpr8xbs6rpxZMU/k91agD5UeP4/lwbncfsJswPNajdTz5scWjHPACDLIxYTwEry64z808lHcc23c9MIeqrkXMI4nPYnLSPQyhXBOJncEugKernBh053Pu5+hDrg9bsoIjtsGmh+p9GnIjrtPAkc8g4tyU+v0PKMVUkqw+mvkVEgzRlKUzURuRTVy5lTHisu0mo6Xmtgw0qfVkTOa2Gnr9gsfmaTToyXY="
# command to run tests
script:
- python setup.py test # or py.test for Python versions 3.5 and below
cache:
pip: true
directories:
- $HOME/.m2
after_success:
- codecov -t 3f12d985-af62-455d-a11d-9669c039640d
- "BRANCHES_TO_MERGE_REGEX='develop' BRANCH_TO_MERGE_INTO=master GITHUB_REPO=AllenInstitute/render-python .travis/merge_script.sh"