dist: trusty sudo: required before_install: - sudo apt-get install mysql-server-5.6 mysql-client-core-5.6 mysql-client-5.6 language: python python: - "3.5" - "nightly" services: - mysql env: - OPENTAXII_CONFIG=$TRAVIS_BUILD_DIR/config.yaml URL="http://ec2-52-42-201-6.us-west-2.compute.amazonaws.com" APIKEY=Vjy0ra7wO6w6si7hbjxX52nARfVpaAO6Tm6lxeSm install: # Check the config is ok - echo $OPENTAXII_CONFIG - mysql --version # Set up the deps - git submodule init - git submodule update #Configure hooks - misp_taxii_hooks/hooks.py - head -n20 misp_taxii_hooks/hooks.py - python setup.py install # Install OpenTAXII - cd OpenTAXII - python setup.py install - cd .. # Create databases - mysql -u root -e 'create database taxiiauth; create database taxiipersist;' - mysql -u root -e "grant all on taxiiauth.* to 'taxii'@'%' identified by 'some_password';" - mysql -u root -e "grant all on taxiipersist.* to 'taxii'@'%' identified by 'some_password';" # Populate databases - opentaxii-create-services -c services.yaml - opentaxii-create-collections -c collections.yaml - opentaxii-create-acccount -u travis -p travis script: - opentaxii-run-dev & - pid=$! - cd tests - nosetests . - cd .. - kill -s INT $pid