lava: Remove apt update & upgrade from lava setup
[lttng-ci.git] / lava / system-tests / setup.yml
index 34c23c39070dafb0cae1b0dd302da56da0a259cc..2413d151b35ea7270eae1e313b9b35ab6ce543fd 100644 (file)
@@ -3,25 +3,27 @@ metadata:
     name: x86-env-setup
     description: "Basic environment setup for x86 board"
     os:
+      - debian
       - ubuntu
     devices:
       - x86
 run:
   steps:
-    - git clone https://github.com/lttng/lttng-ci ci
     - chmod 755 /
-    - systemctl start systemd-timesyncd
-    - echo nameserver 172.18.0.12 > /etc/resolv.conf
+    - echo nameserver 172.18.0.13 > /etc/resolv.conf
     - ip a
     - groupadd tracing
     - depmod -a
+    # The locale generation is required for the python venv
+    # to be correctgly created.
     - locale-gen en_US.UTF-8
-    - apt-get update
-    - apt-get upgrade
-    - apt-get install -y systemtap-sdt-dev openssh-server
-    - pip3 install 'pip==20.3'
-    - hash -r
+    - python3 -m venv /root/python-venv
+    - source /root/python-venv/bin/activate
     - pip3 install vlttng
+    - hash -r
+    - git clone "${CI_REPO}" --branch="${CI_BRANCH}" ci
+    - mkdir -p /root/.ssh
+    - chmod 700 /root/.ssh
     - cp lava/system-tests/authorized_keys /root/.ssh/authorized_keys
     - chmod 600 /root/.ssh/authorized_keys
     - sync
This page took 0.023477 seconds and 4 git commands to generate.