-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
54 lines (48 loc) · 1.57 KB
/
.travis.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
os: linux
dist: bionic
language: python
python: 3.7
node_js: 10
jdk:
- openjkd8
jobs:
include:
- os: linux
dist: xenial
language: python
python: 3.7
node_js: 10
jdk:
- openjkd8
git:
depth: 3
addons:
chrome: stable
apt:
packages:
- chromium-chromedriver
services:
- redis
- xvfb
install:
- cd $TRAVIS_BUILD_DIR
- pip install -r requirements.txt
- wget http://mirror.jkanetwork.com/Datasets/data.sqlite.tgz -O $TRAVIS_BUILD_DIR/ubumlaas/data.sqlite.tgz --no-check-certificate
- tar -xvzf $TRAVIS_BUILD_DIR/ubumlaas/data.sqlite.tgz -C $TRAVIS_BUILD_DIR/ubumlaas
- wget http://mirror.jkanetwork.com/Datasets/ubumlaas.tar -O /tmp/ubumlaas.tar --no-check-certificate
- mkdir -p $TRAVIS_BUILD_DIR/ubumlaas/datasets/{ubumlaas,ubumlaas2}
- mkdir -p $TRAVIS_BUILD_DIR/test/datasets
- tar -xvf /tmp/ubumlaas.tar -C $TRAVIS_BUILD_DIR/ubumlaas/datasets/ubumlaas
- cp $TRAVIS_BUILD_DIR/ubumlaas/datasets/ubumlaas/* $TRAVIS_BUILD_DIR/test/datasets
- cp $TRAVIS_BUILD_DIR/ubumlaas/datasets/ubumlaas/* $TRAVIS_BUILD_DIR/ubumlaas/datasets/ubumlaas2
before_script:
- wget http://mirror.jkanetwork.com/Datasets/env_variables.sh -O env_variables.sh --no-check-certificate
- source env_variables.sh
- python migrate.py
- "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1280x1024x16"
- sleep 3
- python app.py &
- sleep 20
script:
- python -m pytest test/test_selenium.py --verbose
- python -m test.tests