-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.gitlab-ci.yml
23 lines (23 loc) · 981 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
build:
image: ubuntu:latest
script:
- apt-get update -y
- apt-get install build-essential chrpath libssl-dev libxft-dev libfreetype6-dev libfreetype6 libfontconfig1-dev libfontconfig1 -y
- apt-get install wget -y
- apt install python3-pip -y
- pip3 install behave
- pip3 install -U selenium
- pip3 install nose
- wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2
- tar xvjf phantomjs-2.1.1-linux-x86_64.tar.bz2 -C /usr/local/share/
- ln -s /usr/local/share/phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/local/bin/
- phantomjs --version
- apt install firefox -y
- wget https://github.com/mozilla/geckodriver/releases/download/v0.24.0/geckodriver-v0.24.0-linux64.tar.gz
- tar -xvf geckodriver-v0.24.0-linux64.tar.gz
- mv geckodriver /usr/local/bin/
- chmod +x /usr/local/bin/geckodriver
- apt-get install xvfb -y
test:
script:
- xvfb-run behave features/*.feature