sudo: required
os: linux
dist: trusty
language: python

python:
  - 3.3
  - 3.4
  - 3.5
  - 3.6

install:
  - sudo apt-get install -y apache2
  - sudo apt-get install -y php5-common libapache2-mod-php5 php5-cli
  - sudo service apache2 restart
  - sudo mkdir /var/www/angularjs-vulnerable
  - sudo cp -R test/vulnerable-sites/ /var/www/angularjs-vulnerable/
  - sudo chown -R www-data:www-data /var/www
  - sudo chmod +x test/test-vulnerable-sites.sh
  - cd /var/www
  - ls
  - cd /var/www/angularjs-vulnerable
  - ls
  - cd ~/tijme/angularjs-csti-scanner
  - pip install -r requirements.txt

before_script:
  - export DISPLAY=:99.0
  - sh -e /etc/init.d/xvfb start
  - sleep 3

script:
  - python setup.py install
  - test/test-vulnerable-sites.sh
sudo: required
os: linux
dist: trusty
language: python

python:
  - 3.3
  - 3.4
  - 3.5
  - 3.6

install:
  - sudo apt-get install -y apache2
  - sudo apt-get install -y php5-common libapache2-mod-php5 php5-cli
  - sudo service apache2 restart
  - sudo mkdir /var/www/angularjs-vulnerable
  - sudo cp test/vulnerable-sites/* /var/www/angularjs-vulnerable/
  - sudo chown -R www-data:www-data /var/www
  - sudo chmod +x test/test-vulnerable-sites.sh
  - pip install -r requirements.txt

before_script:
  - export DISPLAY=:99.0
  - sh -e /etc/init.d/xvfb start
  - sleep 3

script:
  - python setup.py install
  - test/test-vulnerable-sites.sh
Copy vulnerable sites to correct directory.
Copy vulnerable sites to correct directory.
