forked from arteria-project/arteria-packs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
25 lines (25 loc) · 906 Bytes
/
.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
language: python
python: 2.7
sudo: false
os:
- linux
services:
# Note: MongoDB and RabbitMQ is needed for packs-resource-register check
- mongodb
- rabbitmq
addons:
apt:
packages:
- git
install:
- virtualenv venv
- source venv/bin/activate && pip install --upgrade pip
- source venv/bin/activate && pip install -r requirements.txt
- source venv/bin/activate && pip install -r requirements-test.txt
- "source venv/bin/activate && pip install --no-cache-dir --no-binary :all: --upgrade --force-reinstall greenlet"
- ./utils/prepare_test_env.sh
# Ensure we get a correct value in the config on the travis build
- sed -i "s,packs_base_paths = /opt/stackstorm/packs,packs_base_paths = $(dirname $TRAVIS_BUILD_DIR)," utils/st2.tests.conf
script:
- ./utils/run_tests.sh $TRAVIS_BUILD_DIR/
- ./utils/st2-check-register-pack-resources utils/st2.tests.conf $TRAVIS_BUILD_DIR/