-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
77 lines (73 loc) · 1.97 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
env:
global:
matrix:
- TRAVIS_BUILD_TYPE=normal
- TRAVIS_BUILD_TYPE=test
git:
depth: 3
language: ruby
rvm:
# - 2.1
# - 2.2
- 2.3
- 2.4
- 2.5
- 2.6
- 2.7
dist: xenial
services:
- xvfb
before_install:
- sudo add-apt-repository --yes ppa:ubuntu-sdk-team/ppa
- sudo apt-get update -qq
- sudo apt-get install -qq ruby-dev
- wget https://github.com/mozilla/geckodriver/releases/download/v0.23.0/geckodriver-v0.23.0-linux64.tar.gz
- mkdir geckodriver
- tar -xzf geckodriver-v0.23.0-linux64.tar.gz -C geckodriver
- export PATH=$PATH:$PWD/geckodriver
- # start your web application and listen on `localhost`
- # google-chrome-stable --headless --disable-gpu --remote-debugging-port=9222 http://localhost &
#bundler_args: --deployment
cache: bundler
addons:
firefox: latest
# chrome: stable
before_script:
# - "export DISPLAY=:99.0"
# - "sh -e /etc/init.d/xvfb start"
- gem install ffi -v1.13.1 # for ruby >= 2.3
- gem install rubyzip -v1.3.0 # for ruby >= 2.3
- gem install selenium-webdriver -v3.142.7 # for ruby 2.1, 2.2
- gem install webrick -v1.6.0
- gem install mailcatcher
- ruby ./travisci/webserver.rb&
- mailcatcher
- sleep 3 # give some software a moment to start
script:
- chmod ugo+x ./travisci/runontravis.sh
- ./travisci/runontravis.sh
# - cp config/settings.yaml.sample config/settings.yaml
# - cp config/mail.yaml.sample config/mail.yaml
# - cp config/signature.txt.sample config/signature.txt
# - rake gen_token
# - rake add_admin
# - chmod ugo+x ./scripts/travisbuild.sh
# - ./scripts/travisbuild.sh
# - qmake -qt=qt4 -v ./src/kouets.pro
## - qmake -qt=qt4 ./src/kouets.pro
## - pushd .
## - cd src
# - ./src/gen_git_hash.sh H kouetshash
# - ./src/gen_git_hash.sh CPP kouetshash
# - qmake -qt=qt4 ./src/kouets.pro
# - make
# - echo let us TEST !!
# - cd src/test
# - qmake -qt=qt4 ./test.pro
# - make clean
# - make mocclean
# - make
# - mkdir debug
# - cp test debug/test
# - ./debug/test
# - popd