-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
130 lines (115 loc) · 3.56 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
os: linux
dist: xenial
language: scala
scala:
- 2.12.10
jdk:
- openjdk8
env:
- NODE_VERSION="12.13.1"
#addons:
## chrome: stable
# apt:
# packages:
# # this installs matching chrome browser
# - chromium-chromedriver
# snaps:
# - hugo
branches:
only:
- main
- /^v\d+\.\d+(\.\d+)?(-\S*)?$/
# These directories are cached to S3 at the end of the build
cache:
directories:
- $HOME/.ivy2/cache
- $HOME/.sbt
before_cache:
# Cleanup the cached directories to avoid unnecessary cache updates
- rm -fv $HOME/.ivy2/.sbt.ivy.lock
- find $HOME/.ivy2/cache -name "ivydata-*.properties" -print -delete
- find $HOME/.sbt -name "*.lock" -print -delete
#before_install:
#- export DISPLAY=:99.0
#- sh -e /etc/init.d/xvfb start
install: # Install ChromeDriver
- npm config set ignore-scripts true
#before_script:
# - sudo ln -s /usr/lib/chromium-browser/chromedriver /usr/local/bin/chromedriver
#script:
## - export ParallelUtilsUseSerial=false
#- export UseBrowser=chromeheadless
#- export BuildProduction=true
#- sbt clean distribution:travis
jobs:
include:
- stage: test
before_install:
- nvm install $NODE_VERSION
script:
- |
cat /proc/meminfo
which sbt
cat /etc/sbt/jvmopts
node --version
npm --version
# export JVM_OPTS=@travis/jvmopts.txt
# cat travis/jvmopts.txt
export ServerTestToRun=com.github.thebridsk.bridge.fullserver.test.AllUnitTests
export BuildProduction=true
travis/cmdWithPeriodicMsg.sh sbt setOptimize distribution:travis1
- stage: systemtest
addons:
# chrome: stable
apt:
packages:
# this installs matching chrome browser
- chromium-chromedriver
snaps:
- name: hugo
before_install:
- nvm install $NODE_VERSION
before_script:
- sudo ln -s /usr/lib/chromium-browser/chromedriver /usr/local/bin/chromedriver
script:
- |
cat /proc/meminfo
which sbt
cat /etc/sbt/jvmopts
# export JVM_OPTS=@travis/jvmopts.txt
# cat travis/jvmopts.txt
chromedriver --version
which google-chrome
google-chrome --version
which chromium-browser
chromium-browser --version
sudo mv -f /usr/bin/chromium-browser /usr/bin/google-chrome
export UseBrowser=chromeheadless
export BuildProduction=true
export ServerTestToRun=com.github.thebridsk.bridge.fullserver.test.selenium.AllSeleniumSuites
travis/cmdWithPeriodicMsg.sh sbt setOptimize distribution:travis2
deploy:
- provider: releases
token: $GITHUB_TOKEN # Set in the settings page of your repository, as a secure variable
skip_cleanup: true
file_glob: true
file:
- bridgescorekeeper/target/scala-2.13/bridgescorekeeper-server-*.jar
- bridgescorekeeper/target/scala-2.13/bridgescorekeeper-server-*.jar.sha256
on:
repo: thebridsk/bridgescorer
tags: true
- provider: pages
repo: thebridsk/bridgescorerdemo
token: $GITHUB_TOKEN # Set in the settings page of your repository, as a secure variable
skip_cleanup: true
keep_history: false
target_branch: gh-pages
local_dir: demo/target/demo
strategy: git
on:
repo: thebridsk/bridgescorer
tags: true
# after_failure:
# - cat server/logs/unittestTcpMonitorTimeWait.csv
# - cat server/logs/unittest.1.log