forked from scala-js/scala-js-env-selenium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
54 lines (54 loc) · 1.46 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
sudo: true
language: scala
scala:
- 2.11.12
- 2.12.10
- 2.13.1
jdk:
- openjdk8
env:
- SJS_TEST_BROWSER=firefox
matrix:
include:
- scala: 2.12.10
env: SJS_TEST_BROWSER=chrome
addons:
firefox: latest
chrome: stable
before_install:
# Install Selenium drivers
- wget http://chromedriver.storage.googleapis.com/2.40/chromedriver_linux64.zip
- unzip chromedriver_linux64.zip -d bin
- wget https://github.com/mozilla/geckodriver/releases/download/v0.24.0/geckodriver-v0.24.0-linux64.tar.gz
- tar xf geckodriver-v0.24.0-linux64.tar.gz -C bin
- export PATH=$PWD/bin:$PATH
before_script:
- python -m SimpleHTTPServer 8080 &
script:
- >
sbt ++$TRAVIS_SCALA_VERSION
seleniumJSEnv/scalastyle
seleniumJSEnv/test:scalastyle
seleniumJSEnvTest/scalastyle
seleniumJSHttpEnvTest/test:scalastyle
seleniumJSEnvTest/test:scalastyle
- sbt ++$TRAVIS_SCALA_VERSION seleniumJSEnv/mimaReportBinaryIssues
- sbt ++$TRAVIS_SCALA_VERSION seleniumJSEnv/test
- >
sbt ++$TRAVIS_SCALA_VERSION
seleniumJSEnvTest/test
'set scalaJSStage in Global := FullOptStage'
seleniumJSEnvTest/test
- >
sbt ++$TRAVIS_SCALA_VERSION
seleniumJSHttpEnvTest/test
'set scalaJSStage in Global := FullOptStage'
seleniumJSHttpEnvTest/test
cache:
directories:
- $HOME/.ivy2/cache
- $HOME/.sbt
- $HOME/.coursier/cache
before_cache:
- find $HOME/.ivy2/cache -name "ivydata-*.properties" -delete
- find $HOME/.sbt -name "*.lock" -delete