-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
56 lines (50 loc) · 1.6 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
version: '1.0.{build}-{branch}'
environment:
priv_key:
secure: <encryped-value>
pub_key:
secure: <encryped-value>
matrix:
# Ubuntu - python 3
- APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu1804
PYTHON: "3.6"
stack: python %PYTHON%
platform: x64
# Debugging via SSH
init:
- sh: curl -sflL 'https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-ssh.sh' | bash -e -
cache:
- /home/appveyor/.vagrant.d/boxes
install:
# copying private and public keys to build
- echo "-----BEGIN RSA PRIVATE KEY-----" > $HOME/.ssh/id_rsa
- echo "${priv_key}" | tr " " "\n" >> $HOME/.ssh/id_rsa
- echo "-----END RSA PRIVATE KEY-----" >> $HOME/.ssh/id_rsa
- echo "${pub_key}" | tr " " " " >> $HOME/.ssh/id_rsa.pub
- |
cat <<EOF > $HOME/.ssh/config
Host 192.168.50.*
StrictHostKeyChecking no
User vagrant
EOF
# setting proper permission to private key
- chmod 600 $HOME/.ssh/id_rsa
- sudo wget https://download.virtualbox.org/virtualbox/6.1.2/virtualbox-6.1_6.1.2-135662~Ubuntu~bionic_amd64.deb
- sudo dpkg -i virtualbox-6.1_6.1.2-135662~Ubuntu~bionic_amd64.deb
- sudo apt-get -yq install python-pip
# How did the VirtualBox installation go?
- VBoxManage --version
- pip install ansible==2.9.4
# Ansible correctly installed?
- ansible --version
- pip install molecule
# Molecule corretly version installed?
- molecule --version
- pip install python-vagrant
- sudo wget -nv https://releases.hashicorp.com/vagrant/2.2.7/vagrant_2.2.7_x86_64.deb
# Install Vagrant package
- sudo dpkg -i vagrant_2.2.7_x86_64.deb
# Vagrant correctly installed?
- vagrant --version
test_script:
- make molecule_tests