-
Notifications
You must be signed in to change notification settings - Fork 33
/
.travis.yml
85 lines (84 loc) · 5.92 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
language: node_js
node_js: '14'
cache: yarn
branches:
only:
- master
stages:
- build
- test
- name: deploy website
if: branch = master
env:
matrix:
- TEST=test:chrome:old:page:pre-stylesheet
- TEST=test:chrome:old:page:stylesheet
- TEST=test:chrome:old:page:post-stylesheet
# - TEST=test:chrome:old:extension:pre-stylesheet
# - TEST=test:chrome:old:extension:stylesheet
# - TEST=test:chrome:old:extension:post-stylesheet
- TEST=test:chrome:latest:page:pre-stylesheet
- TEST=test:chrome:latest:page:stylesheet
- TEST=test:chrome:latest:page:post-stylesheet
# - TEST=test:chrome:latest:extension:pre-stylesheet
# - TEST=test:chrome:latest:extension:stylesheet
# - TEST=test:chrome:latest:extension:post-stylesheet
- TEST=test:firefox:quantum
- TEST=test:firefox:latest:pre-on-page
- TEST=test:firefox:latest:on-page
- TEST=test:edge:16
- TEST=test:edge:latest
- TEST=test-build
- TEST=test-local
# - TEST=test:chrome:old:install:greasyfork
# - TEST=test:chrome:old:install:openuserjs
# - TEST=test:chrome:old:install:userscriptsorg
# - TEST=test:chrome:latest:install:greasyfork
# - TEST=test:chrome:latest:install:openuserjs
# - TEST=test:chrome:latest:install:userscriptsorg
# - TEST=test:chrome:latest:install:userstylesorg
# - TEST=test:chrome:latest:install:openusercss
global:
- secure: iPVXFxcVzOVCVVpWq0bxGGttAFjfQdmUaYlq25qeRQ4vf7KMJ749zBxd7PHy3c2TSD3nygt7MZmCRLnbyGnwqvDmPf7+FfFLTKL40vQXGFQzPnHrDTSpituNhU1uNZWsoWtCwzii+8ic14weWxfJwOqByhiotEB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Rg9NZX83JUTk1EpLu67FrLfXTFE18tf7c2ukhYwxwwAqlvwWxsbDN2tT8prHgcAieXVrxUq36p8IwsiftDZdgNpQNVKMr2emvJjfXN+RjTSLn5Zk6k5ys276xzE42fjgWQK0bbnctMdAIz6MSUquZ2JNLz85owbZFsb2st4/otHYpqECYVDgq4n3HYEl68eC5LlfTg70ny+StcXDOXYSukBGByT+Jiuxd1pNZl1f1E9JuWG3SKD8DR1hmPfrWvUKydTCe6kfgtqZU1bxJDgmxTOPbDFiJe8HX6EK0ZUrpGWcU4YlzvzAYdEH9vD2oB/DemkZGlLUvBxlh3Bp+ErdTFFRBulqH/uHXZiq5S74bpzWv5+9kG/1z2W9CsZwF2cx0C0l6E19RJlEdPFG3rYYYn/nBaM4uSYFEJM7ktaAGxXXna/hTgQG1qWpjM4sGLDE=
before_install:
- if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then openssl aes-256-cbc -K $encrypted_6cd0c378df83_key
-iv $encrypted_6cd0c378df83_iv -in test/UI/secrets.js.enc -out test/UI/secrets.js
-d; fi
- if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then openssl aes-256-cbc -K $encrypted_a4225afda018_key
-iv $encrypted_a4225afda018_iv -in scripts/id_rsa.enc -out scripts/id_rsa -d; fi
- npm install gulp http-server -g
install:
- yarn --ignore-engines
script:
- gulp compile
- gulp stashBrowser && gulp browserChrome
- http-server -p 1250 . -s &
- "./scripts/get_build_artifacts.sh || travis_wait yarn pretest"
- "./scripts/do_test.sh $TEST"
jobs:
include:
- stage: build
script:
- yarn pretest
- ./scripts/set_build_artifacts.sh || echo "Failed to upload build artifacts"
- stage: deploy website
script:
- if [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ -z "$TRAVIS_TAG" ]; then ./scripts/is_latest_commit.sh
&& sh ./scripts/deploy-website.sh || echo "Not latest commit, not deploying"
; fi
env: TEST=none
notifications:
email:
on_success: change
on_failure: change
addons:
apt:
packages:
- sshpass
browserstack:
username: sanderronde1
access_key:
secure: L8GIXKNcj4i5LJyvgLI3xRmupxt5bFRKbkYZacfh6rPeRAZ62FqvXCTyvpRoCN+KDP8q6ib+13ejL9kF4YyPXN1a54esv3ivKWs5QPFL8aKcKaSfkFQ/DjKamIb+r8+TB4gh02ST0IwtV46YYHEQfT8YXjmB1l/gTKS0CX8l6xgf8sCZhLEeCxf3+LQ7SoG3RAdDWhgHdHa2eJoACsj7ZfZf18BKcH3Nf4GmgosLKGYGZhkClUriun7KfGzU5z5nOpWW45ZnnFKAPsMxFk7KfWsAOL+TmoYx4PypRgCDlRz7M3ciWrrkCMkZ4tFezYwzUYFd0YXm1YwaEqe4KLLnorswRaCDfAIFISIp/IlaR1V5Rp7Hje0eTyVggmCr5UFMpy9B0UXJb9kpK9r2mUIo5D4rurH8VwpAwysU+Aya2R/H92uuUVWVH423UxGqaU//vSqXG6wuD/xxivJ7uvllmpAI9ylNF93dd4dNMT3Fft4RTCkw75U5c7lHAOYl6b+Xk7+RiUxZkvF/k5wFBw3V4KuoeofeJGiBoqnTOuix4oEdJp83MvfmDfK0+B60lWRdUFiu8VuuFHmRrWbz+uNkbxxTAZZOXtdyJ+m+Y+WrKa4l8nX/YbkXpF9ohhsfcbhFT4OKHb4JDUVMZxIsol2zij28wG5ZP8eIt1rTNUCYGLs=