-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
59 lines (52 loc) · 1.85 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
55
56
57
58
59
dist: xenial
language: python
services:
- xvfb
python:
- "3.6"
env:
# Will kick of 2 builds. One for units and one for tasks.
- TEST_DIR=unit
- TEST_DIR=demos
before_install:
- sudo apt-get update -qq
- sudo apt-get install qtbase5-dev qtdeclarative5-dev libqt5webkit5-dev libsqlite3-dev
- sudo apt-get install qt5-default qttools5-dev-tools
install:
- cd ../
- cur=`pwd`
# Pull V-REP
- wget http://www.coppeliarobotics.com/files/CoppeliaSim_Edu_V4_1_0_Ubuntu16_04.tar.xz
- tar -xf CoppeliaSim_Edu_V4_1_0_Ubuntu16_04.tar.xz
- export COPPELIASIM_ROOT="$cur/CoppeliaSim_Edu_V4_1_0_Ubuntu16_04"
- echo $COPPELIASIM_ROOT
- export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$COPPELIASIM_ROOT:$COPPELIASIM_ROOT/platforms
- export QT_QPA_PLATFORM_PLUGIN_PATH=$COPPELIASIM_ROOT
# Install PyRep
- git clone /~https://github.com/stepjam/PyRep.git
- cd PyRep
- pip3 install -r requirements.txt
- pip3 install .
# Gym needed for some of unit tests
- pip3 install gym
# Go back to RLBench repo
- cd ../RLBench
- pip3 install -r requirements.txt
# command to run tests
script:
# Runs unit tests and generates reports (110 min timeout)
- travis_wait 110 python3 travisci_run_tests.py $TEST_DIR $TRAVIS_BRANCH $TRAVIS_BUILD_NUMBER
after_script:
# Get previously generated index file
- git clone --quiet --branch=gh-pages https://${GITHUB_TOKEN}@github.com/stepjam/RLBench.git gh-pages
- cd gh-pages
# Generated html files will be one directory above
- cp -r ../reports .
# Move script that will amend the index
- mv ../travisci_generate_index.py .
# Generated new index.html
- python3 travisci_generate_index.py $TEST_DIR $TRAVIS_BRANCH $TRAVIS_BUILD_NUMBER $TRAVIS_TEST_RESULT
# Push generate html to gh-pages branch
- git add index.html reports/
- git commit -m "Travis build $TRAVIS_BUILD_NUMBER"
- git push -fq origin gh-pages