MISP-Taxii-Server/.travis.yml

43 lines
1.4 KiB
YAML
Raw Normal View History

Squashed commit of the following: commit 3389560fe994c7c17d678c695128fe90824634d6 Author: Hannah Ward <Hannah.ward9001@gmail.com> Date: Sat Nov 19 15:38:11 2016 +0000 Removed unicode things commit 060f94f565caad28ea66b9a3826b84476dac8b92 Author: Hannah Ward <Hannah.ward9001@gmail.com> Date: Fri Nov 18 16:10:28 2016 +0000 Apparently output goes to stderr? commit b41109dd9e2d8df943e40a46153bc8c4e5bd971b Author: Hannah Ward <Hannah.ward9001@gmail.com> Date: Fri Nov 18 16:01:39 2016 +0000 127 not localhost? commit 77c45273b0755c2c16e85936ca2b76b249cc95d9 Author: Hannah Ward <Hannah.ward9001@gmail.com> Date: Fri Nov 18 15:54:12 2016 +0000 Allow server time to start up commit ee06ff076542d269468db5cc7cd2f9f157af16eb Author: Hannah Ward <Hannah.ward9001@gmail.com> Date: Fri Nov 18 15:48:38 2016 +0000 sudo sudo commit 9f0f31c0234a3c226e7d8ecdd7d9f95afcc77f60 Author: Hannah Ward <Hannah.ward9001@gmail.com> Date: Fri Nov 18 15:47:45 2016 +0000 Move sql install to before_install commit 51b49dc1760643efe3a01756cfdca7fdb335be8e Author: Hannah Ward <Hannah.ward9001@gmail.com> Date: Fri Nov 18 15:46:02 2016 +0000 Fixed a typo commit 2b90620b4cb0d319dfebe8415d7a4fd0e75f2bf3 Author: Hannah Ward <Hannah.ward9001@gmail.com> Date: Fri Nov 18 15:45:10 2016 +0000 Mysql pls commit 7f4e2b9f6213dd0a39ef38754c3aa6b19a2432aa Author: Hannah Ward <Hannah.ward9001@gmail.com> Date: Fri Nov 18 15:42:32 2016 +0000 Switch to trusty travis commit 64e39b798347740cd4700f6a2ac0dd9589a87ac1 Author: Hannah Ward <Hannah.ward9001@gmail.com> Date: Fri Nov 18 15:35:31 2016 +0000 Switch to trusty travis commit 44685648608a04cba1b933479654159d4bf804ac Author: Hannah Ward <Hannah.ward9001@gmail.com> Date: Fri Nov 18 15:30:30 2016 +0000 Stop being a tard commit 0a9f534fa71bce3625c39f6cb28c294a57406806 Author: Hannah Ward <Hannah.ward9001@gmail.com> Date: Fri Nov 18 15:28:04 2016 +0000 Check mysql version commit 887a6d82a7f8fc243f8d0740e97fbf85cb3c3c29 Author: Hannah Ward <Hannah.ward9001@gmail.com> Date: Fri Nov 18 15:17:26 2016 +0000 Print a bit of debug info
2016-11-19 16:42:54 +01:00
sudo: required
2016-11-18 14:51:01 +01:00
language: python
python:
- "3.5"
2019-02-12 18:11:36 +01:00
- "3.6"
2016-11-18 14:51:01 +01:00
services:
- mysql
2019-02-12 17:23:02 +01:00
- docker
2016-11-18 14:51:01 +01:00
env:
2019-02-12 18:11:36 +01:00
- OPENTAXII_CONFIG=$TRAVIS_BUILD_DIR/config/config.travis.yaml URL="http://localhost" APIKEY=testmispapikeytestmispapikeytestmispapik
2016-11-18 14:51:01 +01:00
Squashed commit of the following: commit 3389560fe994c7c17d678c695128fe90824634d6 Author: Hannah Ward <Hannah.ward9001@gmail.com> Date: Sat Nov 19 15:38:11 2016 +0000 Removed unicode things commit 060f94f565caad28ea66b9a3826b84476dac8b92 Author: Hannah Ward <Hannah.ward9001@gmail.com> Date: Fri Nov 18 16:10:28 2016 +0000 Apparently output goes to stderr? commit b41109dd9e2d8df943e40a46153bc8c4e5bd971b Author: Hannah Ward <Hannah.ward9001@gmail.com> Date: Fri Nov 18 16:01:39 2016 +0000 127 not localhost? commit 77c45273b0755c2c16e85936ca2b76b249cc95d9 Author: Hannah Ward <Hannah.ward9001@gmail.com> Date: Fri Nov 18 15:54:12 2016 +0000 Allow server time to start up commit ee06ff076542d269468db5cc7cd2f9f157af16eb Author: Hannah Ward <Hannah.ward9001@gmail.com> Date: Fri Nov 18 15:48:38 2016 +0000 sudo sudo commit 9f0f31c0234a3c226e7d8ecdd7d9f95afcc77f60 Author: Hannah Ward <Hannah.ward9001@gmail.com> Date: Fri Nov 18 15:47:45 2016 +0000 Move sql install to before_install commit 51b49dc1760643efe3a01756cfdca7fdb335be8e Author: Hannah Ward <Hannah.ward9001@gmail.com> Date: Fri Nov 18 15:46:02 2016 +0000 Fixed a typo commit 2b90620b4cb0d319dfebe8415d7a4fd0e75f2bf3 Author: Hannah Ward <Hannah.ward9001@gmail.com> Date: Fri Nov 18 15:45:10 2016 +0000 Mysql pls commit 7f4e2b9f6213dd0a39ef38754c3aa6b19a2432aa Author: Hannah Ward <Hannah.ward9001@gmail.com> Date: Fri Nov 18 15:42:32 2016 +0000 Switch to trusty travis commit 64e39b798347740cd4700f6a2ac0dd9589a87ac1 Author: Hannah Ward <Hannah.ward9001@gmail.com> Date: Fri Nov 18 15:35:31 2016 +0000 Switch to trusty travis commit 44685648608a04cba1b933479654159d4bf804ac Author: Hannah Ward <Hannah.ward9001@gmail.com> Date: Fri Nov 18 15:30:30 2016 +0000 Stop being a tard commit 0a9f534fa71bce3625c39f6cb28c294a57406806 Author: Hannah Ward <Hannah.ward9001@gmail.com> Date: Fri Nov 18 15:28:04 2016 +0000 Check mysql version commit 887a6d82a7f8fc243f8d0740e97fbf85cb3c3c29 Author: Hannah Ward <Hannah.ward9001@gmail.com> Date: Fri Nov 18 15:17:26 2016 +0000 Print a bit of debug info
2016-11-19 16:42:54 +01:00
before_install:
- sudo apt-get install mysql-server-5.6 mysql-client-core-5.6 mysql-client-5.6 libxml2-dev libxslt1-dev zlib1g-dev
2019-02-12 18:11:36 +01:00
- pip install -r REQUIREMENTS.txt
2017-06-22 13:10:24 +02:00
- python setup.py install
2019-02-12 17:23:02 +01:00
- docker pull floatingghost/misp-testable:v2.4.102
- docker run -d -p 80:80 floatingghost/misp-testable:v2.4.102
Squashed commit of the following: commit 3389560fe994c7c17d678c695128fe90824634d6 Author: Hannah Ward <Hannah.ward9001@gmail.com> Date: Sat Nov 19 15:38:11 2016 +0000 Removed unicode things commit 060f94f565caad28ea66b9a3826b84476dac8b92 Author: Hannah Ward <Hannah.ward9001@gmail.com> Date: Fri Nov 18 16:10:28 2016 +0000 Apparently output goes to stderr? commit b41109dd9e2d8df943e40a46153bc8c4e5bd971b Author: Hannah Ward <Hannah.ward9001@gmail.com> Date: Fri Nov 18 16:01:39 2016 +0000 127 not localhost? commit 77c45273b0755c2c16e85936ca2b76b249cc95d9 Author: Hannah Ward <Hannah.ward9001@gmail.com> Date: Fri Nov 18 15:54:12 2016 +0000 Allow server time to start up commit ee06ff076542d269468db5cc7cd2f9f157af16eb Author: Hannah Ward <Hannah.ward9001@gmail.com> Date: Fri Nov 18 15:48:38 2016 +0000 sudo sudo commit 9f0f31c0234a3c226e7d8ecdd7d9f95afcc77f60 Author: Hannah Ward <Hannah.ward9001@gmail.com> Date: Fri Nov 18 15:47:45 2016 +0000 Move sql install to before_install commit 51b49dc1760643efe3a01756cfdca7fdb335be8e Author: Hannah Ward <Hannah.ward9001@gmail.com> Date: Fri Nov 18 15:46:02 2016 +0000 Fixed a typo commit 2b90620b4cb0d319dfebe8415d7a4fd0e75f2bf3 Author: Hannah Ward <Hannah.ward9001@gmail.com> Date: Fri Nov 18 15:45:10 2016 +0000 Mysql pls commit 7f4e2b9f6213dd0a39ef38754c3aa6b19a2432aa Author: Hannah Ward <Hannah.ward9001@gmail.com> Date: Fri Nov 18 15:42:32 2016 +0000 Switch to trusty travis commit 64e39b798347740cd4700f6a2ac0dd9589a87ac1 Author: Hannah Ward <Hannah.ward9001@gmail.com> Date: Fri Nov 18 15:35:31 2016 +0000 Switch to trusty travis commit 44685648608a04cba1b933479654159d4bf804ac Author: Hannah Ward <Hannah.ward9001@gmail.com> Date: Fri Nov 18 15:30:30 2016 +0000 Stop being a tard commit 0a9f534fa71bce3625c39f6cb28c294a57406806 Author: Hannah Ward <Hannah.ward9001@gmail.com> Date: Fri Nov 18 15:28:04 2016 +0000 Check mysql version commit 887a6d82a7f8fc243f8d0740e97fbf85cb3c3c29 Author: Hannah Ward <Hannah.ward9001@gmail.com> Date: Fri Nov 18 15:17:26 2016 +0000 Print a bit of debug info
2016-11-19 16:42:54 +01:00
2016-11-18 14:51:01 +01:00
install:
Squashed commit of the following: commit 3389560fe994c7c17d678c695128fe90824634d6 Author: Hannah Ward <Hannah.ward9001@gmail.com> Date: Sat Nov 19 15:38:11 2016 +0000 Removed unicode things commit 060f94f565caad28ea66b9a3826b84476dac8b92 Author: Hannah Ward <Hannah.ward9001@gmail.com> Date: Fri Nov 18 16:10:28 2016 +0000 Apparently output goes to stderr? commit b41109dd9e2d8df943e40a46153bc8c4e5bd971b Author: Hannah Ward <Hannah.ward9001@gmail.com> Date: Fri Nov 18 16:01:39 2016 +0000 127 not localhost? commit 77c45273b0755c2c16e85936ca2b76b249cc95d9 Author: Hannah Ward <Hannah.ward9001@gmail.com> Date: Fri Nov 18 15:54:12 2016 +0000 Allow server time to start up commit ee06ff076542d269468db5cc7cd2f9f157af16eb Author: Hannah Ward <Hannah.ward9001@gmail.com> Date: Fri Nov 18 15:48:38 2016 +0000 sudo sudo commit 9f0f31c0234a3c226e7d8ecdd7d9f95afcc77f60 Author: Hannah Ward <Hannah.ward9001@gmail.com> Date: Fri Nov 18 15:47:45 2016 +0000 Move sql install to before_install commit 51b49dc1760643efe3a01756cfdca7fdb335be8e Author: Hannah Ward <Hannah.ward9001@gmail.com> Date: Fri Nov 18 15:46:02 2016 +0000 Fixed a typo commit 2b90620b4cb0d319dfebe8415d7a4fd0e75f2bf3 Author: Hannah Ward <Hannah.ward9001@gmail.com> Date: Fri Nov 18 15:45:10 2016 +0000 Mysql pls commit 7f4e2b9f6213dd0a39ef38754c3aa6b19a2432aa Author: Hannah Ward <Hannah.ward9001@gmail.com> Date: Fri Nov 18 15:42:32 2016 +0000 Switch to trusty travis commit 64e39b798347740cd4700f6a2ac0dd9589a87ac1 Author: Hannah Ward <Hannah.ward9001@gmail.com> Date: Fri Nov 18 15:35:31 2016 +0000 Switch to trusty travis commit 44685648608a04cba1b933479654159d4bf804ac Author: Hannah Ward <Hannah.ward9001@gmail.com> Date: Fri Nov 18 15:30:30 2016 +0000 Stop being a tard commit 0a9f534fa71bce3625c39f6cb28c294a57406806 Author: Hannah Ward <Hannah.ward9001@gmail.com> Date: Fri Nov 18 15:28:04 2016 +0000 Check mysql version commit 887a6d82a7f8fc243f8d0740e97fbf85cb3c3c29 Author: Hannah Ward <Hannah.ward9001@gmail.com> Date: Fri Nov 18 15:17:26 2016 +0000 Print a bit of debug info
2016-11-19 16:42:54 +01:00
# Check the config is ok
- echo $OPENTAXII_CONFIG
- mysql --version
#Configure hooks
- <misp_taxii_hooks/hooks.py sed 's@\[URL\]@'"$URL"'@; s@\[APIKEY\]@'"$APIKEY"'@' > misp_taxii_hooks/hooks.py
Squashed commit of the following: commit 3389560fe994c7c17d678c695128fe90824634d6 Author: Hannah Ward <Hannah.ward9001@gmail.com> Date: Sat Nov 19 15:38:11 2016 +0000 Removed unicode things commit 060f94f565caad28ea66b9a3826b84476dac8b92 Author: Hannah Ward <Hannah.ward9001@gmail.com> Date: Fri Nov 18 16:10:28 2016 +0000 Apparently output goes to stderr? commit b41109dd9e2d8df943e40a46153bc8c4e5bd971b Author: Hannah Ward <Hannah.ward9001@gmail.com> Date: Fri Nov 18 16:01:39 2016 +0000 127 not localhost? commit 77c45273b0755c2c16e85936ca2b76b249cc95d9 Author: Hannah Ward <Hannah.ward9001@gmail.com> Date: Fri Nov 18 15:54:12 2016 +0000 Allow server time to start up commit ee06ff076542d269468db5cc7cd2f9f157af16eb Author: Hannah Ward <Hannah.ward9001@gmail.com> Date: Fri Nov 18 15:48:38 2016 +0000 sudo sudo commit 9f0f31c0234a3c226e7d8ecdd7d9f95afcc77f60 Author: Hannah Ward <Hannah.ward9001@gmail.com> Date: Fri Nov 18 15:47:45 2016 +0000 Move sql install to before_install commit 51b49dc1760643efe3a01756cfdca7fdb335be8e Author: Hannah Ward <Hannah.ward9001@gmail.com> Date: Fri Nov 18 15:46:02 2016 +0000 Fixed a typo commit 2b90620b4cb0d319dfebe8415d7a4fd0e75f2bf3 Author: Hannah Ward <Hannah.ward9001@gmail.com> Date: Fri Nov 18 15:45:10 2016 +0000 Mysql pls commit 7f4e2b9f6213dd0a39ef38754c3aa6b19a2432aa Author: Hannah Ward <Hannah.ward9001@gmail.com> Date: Fri Nov 18 15:42:32 2016 +0000 Switch to trusty travis commit 64e39b798347740cd4700f6a2ac0dd9589a87ac1 Author: Hannah Ward <Hannah.ward9001@gmail.com> Date: Fri Nov 18 15:35:31 2016 +0000 Switch to trusty travis commit 44685648608a04cba1b933479654159d4bf804ac Author: Hannah Ward <Hannah.ward9001@gmail.com> Date: Fri Nov 18 15:30:30 2016 +0000 Stop being a tard commit 0a9f534fa71bce3625c39f6cb28c294a57406806 Author: Hannah Ward <Hannah.ward9001@gmail.com> Date: Fri Nov 18 15:28:04 2016 +0000 Check mysql version commit 887a6d82a7f8fc243f8d0740e97fbf85cb3c3c29 Author: Hannah Ward <Hannah.ward9001@gmail.com> Date: Fri Nov 18 15:17:26 2016 +0000 Print a bit of debug info
2016-11-19 16:42:54 +01:00
- head -n20 misp_taxii_hooks/hooks.py
- python setup.py install
2016-11-18 14:51:01 +01:00
# 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
2019-02-12 18:11:36 +01:00
- opentaxii-sync-data config/data-configuration.yaml
2016-11-18 14:51:01 +01:00
script:
2016-11-18 15:48:46 +01:00
- opentaxii-run-dev &
- pid=$!
Squashed commit of the following: commit 3389560fe994c7c17d678c695128fe90824634d6 Author: Hannah Ward <Hannah.ward9001@gmail.com> Date: Sat Nov 19 15:38:11 2016 +0000 Removed unicode things commit 060f94f565caad28ea66b9a3826b84476dac8b92 Author: Hannah Ward <Hannah.ward9001@gmail.com> Date: Fri Nov 18 16:10:28 2016 +0000 Apparently output goes to stderr? commit b41109dd9e2d8df943e40a46153bc8c4e5bd971b Author: Hannah Ward <Hannah.ward9001@gmail.com> Date: Fri Nov 18 16:01:39 2016 +0000 127 not localhost? commit 77c45273b0755c2c16e85936ca2b76b249cc95d9 Author: Hannah Ward <Hannah.ward9001@gmail.com> Date: Fri Nov 18 15:54:12 2016 +0000 Allow server time to start up commit ee06ff076542d269468db5cc7cd2f9f157af16eb Author: Hannah Ward <Hannah.ward9001@gmail.com> Date: Fri Nov 18 15:48:38 2016 +0000 sudo sudo commit 9f0f31c0234a3c226e7d8ecdd7d9f95afcc77f60 Author: Hannah Ward <Hannah.ward9001@gmail.com> Date: Fri Nov 18 15:47:45 2016 +0000 Move sql install to before_install commit 51b49dc1760643efe3a01756cfdca7fdb335be8e Author: Hannah Ward <Hannah.ward9001@gmail.com> Date: Fri Nov 18 15:46:02 2016 +0000 Fixed a typo commit 2b90620b4cb0d319dfebe8415d7a4fd0e75f2bf3 Author: Hannah Ward <Hannah.ward9001@gmail.com> Date: Fri Nov 18 15:45:10 2016 +0000 Mysql pls commit 7f4e2b9f6213dd0a39ef38754c3aa6b19a2432aa Author: Hannah Ward <Hannah.ward9001@gmail.com> Date: Fri Nov 18 15:42:32 2016 +0000 Switch to trusty travis commit 64e39b798347740cd4700f6a2ac0dd9589a87ac1 Author: Hannah Ward <Hannah.ward9001@gmail.com> Date: Fri Nov 18 15:35:31 2016 +0000 Switch to trusty travis commit 44685648608a04cba1b933479654159d4bf804ac Author: Hannah Ward <Hannah.ward9001@gmail.com> Date: Fri Nov 18 15:30:30 2016 +0000 Stop being a tard commit 0a9f534fa71bce3625c39f6cb28c294a57406806 Author: Hannah Ward <Hannah.ward9001@gmail.com> Date: Fri Nov 18 15:28:04 2016 +0000 Check mysql version commit 887a6d82a7f8fc243f8d0740e97fbf85cb3c3c29 Author: Hannah Ward <Hannah.ward9001@gmail.com> Date: Fri Nov 18 15:17:26 2016 +0000 Print a bit of debug info
2016-11-19 16:42:54 +01:00
- sleep 15
2019-02-12 18:32:50 +01:00
- taxii-push --path http://127.0.0.1:9000/services/inbox -f test/test.xml --dest my_collection --username admin --password admin
2016-11-18 15:48:46 +01:00
- kill -s INT $pid