-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
42 lines (38 loc) · 871 Bytes
/
.gitlab-ci.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
stages:
- build
- test
before_script:
- pwd
- echo 'test'
- groupadd pi
- useradd -u 1000 -g pi -m -p raspberry pi
- usermod -aG sudo pi
- mkdir -p /home/pi/Downloads
- apt -y autoremove
- apt -y update
- apt -y upgrade
- apt -y install python3.7 software-properties-common python3-pip git-all raspi-config
- python3 --version
- pip3 install ansible
- ansible --version
# install_packages:
# stage: install
# script:
# - apt -y autoremove
# - apt -y update
# - apt -y upgrade
# - apt -y install python3.7 software-properties-common python3-pip git-all raspi-config
# - python3 --version
# - pip3 install ansible
# - ansible --version
ui_installation:
stage: build
script:
- ls -a
- pwd
- cd /home/pi/hev
- ./setup.sh CI
ui_test:
stage: test
script:
- echo "Tests will be here."