Merge branch '8087-arv-cli-request-body-from-file' of https://github.com/wtsi-hgi...
[arvados.git] / build / package-testing / test-package-arvados-api-server.sh
1 #!/bin/sh
2 set -e
3 cd /var/www/arvados-api/current/
4
5 case "$TARGET" in
6     debian*|ubuntu*)
7         apt-get install -y nginx
8         dpkg-reconfigure arvados-api-server
9         ;;
10     centos6)
11         yum install --assumeyes httpd
12         yum reinstall --assumeyes arvados-api-server
13         ;;
14     *)
15         echo -e "$0: Unknown target '$TARGET'.\n" >&2
16         exit 1
17         ;;
18 esac
19
20 /usr/local/rvm/bin/rvm-exec default bundle list >"$ARV_PACKAGES_DIR/arvados-api-server.gems"