-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
76 lines (67 loc) · 2.84 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
language: python
python: 2.7
dist: xenial
sudo: required
env:
global:
- SITE_URL="https://artbio.github.io/GalaxyKickStart/"
- GH_USER_NAME="Christophe Antoniewski"
- GH_USER_EMAIL="[email protected]"
- GH_REF="github.com/ARTbio/metavisitor.git"
- GALAXY_TRAVIS_USER="galaxy"
- GALAXY_UID="1450"
- GALAXY_GID="1450"
- GALAXY_HOME="/home/galaxy"
- GALAXY_USER="[email protected]"
- GALAXY_USER_EMAIL="[email protected]"
- GALAXY_USER_PASSWD="admin"
- GALAXY_VERSION=release_19.01
- BIOBLEND_GALAXY_API_KEY="admin"
- BIOBLEND_TEST_JOB_TIMEOUT="120"
- secure: tZsnvT9RPFldJ06Wkqqsr4TTHoqjmMo4q7RXiFiMNBU5BeFaF1ERQ99ILterd9SvMLcL2GGqpwj0m6tG4hNZQ//+APh2eatMBMRVNhva2w4WVVeRfhiPUHe8jtPazhHvHaXeb6y3fEHZVxzoXfqaiHMzsYI1aAhpQeREaLPgCfT7CGjE71AOATXdCjPnkyQ7X8Vp2s27LZ+m1YVhEJA/WnYYlkE/8weoVDnhMVSOxTS8GMdWomzelhgNXTDShaCU6+USWIeo3hWZHMmevDcALYHa27tXw+GyZbZJ2KfCAZwPruz+0zsHH2FWmRUa+INvD9TpipNMPS0wEOdOH8UZcvePnL15T/B3KvVI1wwbYSvcgj+sXoxbmOA80vi6HNKM9kkufbCcax9szR4lDMPk71oC9myyriHamQgT5Dj5oLlZ+XkWupzmsNvQ0YUEw88wGWVvPAw5ayUfo+UXSKl4YZukqODYDL2+1a8GsSE/SqpqdPl5+ciICmYIN1Q1pZFEbao25jxifqJfVBe8w66xTNGhz62Sypu8W34+A6Kec/sfjh8w5zGKgj3PVCSvj912KjvlyxhEXjSej0R9tQYVrESALxQL/wqpZO88+ujSOa7W88TxW4vLn+Pomx0I94c2WUhmUIICKk+UYlpuodpCPvcAUS8BW/eckWVVr3NR5yk=
jobs:
include:
- stage: push_documentation
if: (type = push) AND (branch =~ doc)
before_install: skip
install:
- echo "pushing documentation to a doc branch"
- echo "documentation will be built when merging a pull request"
- echo "terminating this stage gracefully"
- stage: test
if: (type = push) AND (branch != master) AND !(branch =~ doc)
env:
- TRAVIS_JOB=docker
- BIOBLEND_GALAXY_URL="http://localhost:80/subdir/"
- stage: test
if: (type = push) AND (branch != master) AND !(branch =~ doc)
env:
- TRAVIS_JOB=ansible
- BIOBLEND_GALAXY_URL="http://localhost:80"
- stage: deploy
if: (type = push) AND (branch = master)
before_install: skip
install:
- |
if ! git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '(.md)|(.png)|(.pdf)|(.html)|^(LICENSE)|^(docs)|^(mkdocs)'
then
sh $TRAVIS_BUILD_DIR/deploy_doc.sh
echo "Only doc files were updated, not building docker image."
exit
fi
script:
- . $TRAVIS_BUILD_DIR/deploy_doc.sh
- . $TRAVIS_BUILD_DIR/push_to_docker_registry.sh
addons:
apt:
update: true
before_install:
- pip --version
- docker --version
- pip install ansible==2.7.4
- ansible --version
- sh $TRAVIS_BUILD_DIR/travis_before_install.sh $TRAVIS_JOB
install:
- sudo su $GALAXY_TRAVIS_USER -c 'pip install --ignore-installed --user https://github.com/galaxyproject/bioblend/archive/master.zip pytest' fi
script:
- . $TRAVIS_BUILD_DIR/travis_test.sh