Moved installation scripts out of .travis.yml

This commit is contained in:
Georges Dupéron 2018-07-03 18:47:39 +02:00
parent c32232bfad
commit e83e2cf69b
3 changed files with 19 additions and 10 deletions

View File

@ -39,17 +39,9 @@ matrix:
sudo: false
install:
# The sikuli-ide packaged with ubuntu 16.04 does not seem to work correctly: missing dependencies, some dependencies are too recent, …
- mkdir ~/sikulix/
- wget https://launchpadlibrarian.net/359997648/sikulixsetup-1.1.2.jar -O ~/sikulix/sikulixsetup-1.1.2.jar
- (cd ~/sikulix && java -jar sikulixsetup-1.1.2.jar options 1 1.1)
- ./utils/install-sikulix.sh
- export PATH="$HOME/sikulix/:$PATH"
- |
if test "$MODE" = virtualbox; then
echo "deb https://download.virtualbox.org/virtualbox/debian $(lsb_release --short --codename) contrib" | sudo tee /etc/apt/sources.list.d/virtualbox.list
sudo apt-get update
sudo apt-get -y install virtualbox "linux-headers-$(uname -r)"
fi
- if test "$MODE" = virtualbox -o "$MODE" = self-test; then ./utils/install-virtualbox.sh; fi
script:
- (cd example-os && make)

9
utils/install-sikulix.sh Executable file
View File

@ -0,0 +1,9 @@
#!/bin/sh
set -e
# The sikuli-ide packaged with ubuntu 16.04 does not seem to work correctly: missing dependencies, some dependencies are too recent, …
mkdir ~/sikulix/
wget https://launchpadlibrarian.net/359997648/sikulixsetup-1.1.2.jar -O ~/sikulix/sikulixsetup-1.1.2.jar
(cd ~/sikulix && java -jar sikulixsetup-1.1.2.jar options 1 1.1)
echo 'export PATH="$HOME/sikulix/:$PATH"'

8
utils/install-virtualbox.sh Executable file
View File

@ -0,0 +1,8 @@
#!/bin/sh
set -e
echo "deb https://download.virtualbox.org/virtualbox/debian $(lsb_release --short --codename) contrib" \
| sudo tee /etc/apt/sources.list.d/virtualbox.list
sudo apt-get update
sudo apt-get -y install virtualbox "linux-headers-$(uname -r)"