Initial commit
This commit is contained in:
Executable
+11
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
apt-get update && apt-get install -y curl jq python python-pip
|
||||
pip install -U pip tox
|
||||
|
||||
## Get latest rancher-catalog
|
||||
download_url=$(curl https://api.github.com/repos/rancher/rancher-catalog-service/releases/latest | jq -r '.assets[]| select(.name == "rancher-catalog-service.tar.xz")| .browser_download_url')
|
||||
curl -sL -o /tmp/rancher-catalog-service.tar.xz ${download_url}
|
||||
tar -xJf /tmp/rancher-catalog-service.tar.xz -C /usr/bin/
|
||||
|
||||
|
||||
Executable
+6
@@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
cd $(dirname $0)/..
|
||||
|
||||
./scripts/bootstrap
|
||||
./scripts/test
|
||||
Executable
+18
@@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
cd $(dirname $0)/..
|
||||
|
||||
trap "rm -rf /scratch/*" exit
|
||||
|
||||
if [ -d "/scratch" ]; then
|
||||
rsync -a --exclude .tox ./ /scratch
|
||||
fi
|
||||
|
||||
pushd /scratch/integration
|
||||
|
||||
# Start rancher-catalog-service and wait for it to start.
|
||||
/usr/bin/rancher-catalog-service -catalogUrl ../ -refreshInterval 7200 > /dev/null 2>&1 &
|
||||
sleep 10
|
||||
tox -e flake8,py27
|
||||
popd
|
||||
Reference in New Issue
Block a user