Skip to content
This repository was archived by the owner on Apr 17, 2023. It is now read-only.

Commit 39716b2

Browse files
Merge pull request #208 from jordimassaguerpla/add_appliance_tests
add appliance tests
2 parents 9192d43 + dc2395a commit 39716b2

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Use this script to test the appliance from a jenkins job.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
echo 'hello world'
3+
cd /srv/Portus;RAILS_ENV=production INTEGRATION_TESTS=1 bundle exec rake db:drop db:create db:migrate db:seed
4+
docker pull busybox
5+
docker tag -f busybox portus.suse.example.com:5000/busybox
6+
docker login --username=username31 --password=test-password [email protected] portus.suse.example.com:5000
7+
docker push portus.suse.example.com:5000/busybox
8+
cd /srv/Portus;RAILS_ENV=production bundle exec rails runner 'exit -1 unless PublicActivity::Activity.count == 1'
9+

0 commit comments

Comments
 (0)