diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index b49bd61d9a3..00000000000 --- a/.travis.yml +++ /dev/null @@ -1,29 +0,0 @@ -language: - - ruby - -rvm: - - "1.9.3" - #- "2.0.0" - -before_install: - - cp script/ci/katello.yml config/katello.yml - -install: - - travis_retry bundle install --without devboost:optional:debugging - -script: - - "./script/ci/katello_pr_$JOB.sh" - -env: - - JOB=rspec - - JOB=other - - JOB=javascript - -branches: - except: - - engine - -#matrix: - #exclude: - #- rvm: "1.9.3" - #env: "JOB=javascript" diff --git a/script/ci/katello_pr_javascript.sh b/script/ci/katello_pr_javascript.sh deleted file mode 100755 index f67d5635b72..00000000000 --- a/script/ci/katello_pr_javascript.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/bash - -echo "" -echo "********* JavaScript Jasmine Tests against PhantomJS and Firefox ****************" -cd engines/bastion - -sudo apt-get install python-software-properties python g++ make -sudo yes | sudo add-apt-repository ppa:chris-lea/node.js -sudo apt-get update -sudo apt-get install nodejs - -export DISPLAY=:99.0 -sh -e /etc/init.d/xvfb start - -npm install -g bower grunt-cli -npm install grunt - -npm install -bower cache clean -bower install - -grunt ci diff --git a/script/ci/katello_pr_other.sh b/script/ci/katello_pr_other.sh deleted file mode 100755 index e7128739b81..00000000000 --- a/script/ci/katello_pr_other.sh +++ /dev/null @@ -1,46 +0,0 @@ -#!/bin/bash - -echo "" -echo "********* Rubocop Lint Test ****************" -bundle exec rubocop -R || exit 1 -echo "Ruby code passed rubocop check." -echo "" - -echo "********* Minitest Model and Glue Tests ****************" -psql -c "CREATE USER katellouser WITH PASSWORD 'katellopw';" -U postgres -psql -c "ALTER ROLE katellouser WITH CREATEDB" -U postgres -psql -c "CREATE DATABASE katelloschema OWNER katellouser;" -U postgres - -RAILS_ENV=test bundle exec rake db:create - -# SCHEMA: return to schema usage after FKs fixed -# bundle exec rake db:test:load > /dev/null -RAILS_ENV=test bundle exec rake db:migrate > /dev/null - -bundle exec rake minitest || exit 1 - -echo "" -cd engines/fort/ -RAILS_ENV='test' bundle exec rake test || exit 1 -cd ../.. -echo "Fort tests complete" - -echo "" -echo "********* Source Code Lint Tests ****************" -RAILS_ENV='build' ruby -Itest test/source_code_test.rb || exit 1 -echo "Ruby code checked." - -echo "" -echo "********* JSHint Javascript Check ****************" -RAILS_ENV=development bundle exec rake jshint || exit 1 -echo "Javascript code checked." - -echo "" -echo "********* Testing Asset Precompile ****************" -bundle exec rake assets:precompile || exit 1 -echo "Asset precompile works." - -echo "" -echo "********* Testing Apipie Documentation ****************" -RAILS_ENV=build bundle exec rake apipie:static apipie:cache --trace || exit 1 -echo "Apipie documentation works." diff --git a/script/ci/katello_pr_rspec.sh b/script/ci/katello_pr_rspec.sh deleted file mode 100755 index f1c8e56e31b..00000000000 --- a/script/ci/katello_pr_rspec.sh +++ /dev/null @@ -1,38 +0,0 @@ -#!/bin/bash - -echo "" -echo "********* Katello RSPEC Unit Tests ****************" - -psql -c "CREATE USER katellouser WITH PASSWORD 'katellopw';" -U postgres -psql -c "ALTER ROLE katellouser WITH CREATEDB" -U postgres -psql -c "CREATE DATABASE katelloschema OWNER katellouser;" -U postgres - -RAILS_ENV=test bundle exec rake db:create - -# SCHEMA: return to schema usage after FKs fixed -# bundle exec rake db:test:load > /dev/null -RAILS_ENV=test bundle exec rake db:migrate > /dev/null -bundle exec rspec ./spec --tag '~headpin' -if [ $? -ne 0 ] -then - exit 1 -fi - -RAILS_ENV=test bundle exec rake db:drop - - -echo "" -echo "********* Headpin RSPEC Unit Tests ****************" -echo "common:" > config/katello.yml -echo " app_mode: headpin" >> config/katello.yml - -RAILS_ENV=test bundle exec rake db:create - -# SCHEMA: return to schema usage after FKs fixed -# bundle exec rake db:test:load > /dev/null -RAILS_ENV=test bundle exec rake db:migrate > /dev/null -bundle exec rspec ./spec --tag '~katello' -if [ $? -ne 0 ] -then - exit 1 -fi