-
Notifications
You must be signed in to change notification settings - Fork 421
/
.travis.yml
47 lines (47 loc) · 1.36 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
sudo: false
language: node_js
dist: focal
services:
- xvfb
before_install:
- ./firefox-allow-popups.sh
# On the line below, you’ll see the canjs-not-master keys being used only for master builds. This is correct. Unfortunately, the username can’t be changed and we’ve already hit the max number of allowed Sauce Labs accounts.
- if [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST" == false ]; then SAUCE_ACCESS_KEY=$SAUCE_ACCESS_KEY_NOT_MASTER SAUCE_USERNAME=$SAUCE_USERNAME_NOT_MASTER; fi
- echo "Sauce Labs username is $SAUCE_USERNAME"
- |
if ! git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '(\.md$)|(^docs)|(^demos)/'
then
echo "Only docs were updated, skipping tests."
exit
fi
- "echo 'This is running'"
after_install:
- "echo 'Install has finished'"
matrix:
include:
- node_js: 14
env: TEST_SUITE=sauce-labs
addons:
sauce_connect: true
hosts: canjs.test
- node_js: 14
env: TEST_SUITE=development
addons:
firefox: latest
- node_js: 14
env: TEST_SUITE=production
addons:
firefox: latest
- node_js: 14
env: TEST_SUITE=builders
addons:
firefox: latest
- node_js: 14
env: TEST_SUITE=global-build
addons:
firefox: latest
script:
- "npm run test-$TEST_SUITE"
before_script:
- npm run http-server &
- sleep 2