-
Notifications
You must be signed in to change notification settings - Fork 159
Expand file tree
/
Copy path.travis.yml
More file actions
31 lines (31 loc) · 720 Bytes
/
.travis.yml
File metadata and controls
31 lines (31 loc) · 720 Bytes
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
language: node_js
node_js:
- "12"
before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash
- export PATH="$HOME/.yarn/bin:$PATH"
before_script:
- yarn run build
- export DISPLAY=:99.0; sh -e /etc/init.d/xvfb start
script: yarn test
os: linux
sudo: required
dist: trusty
addons:
apt:
packages:
- mesa-utils
- xvfb
- libgl1-mesa-dri
- libglapi-mesa
- libosmesa6
before_deploy:
- unset CI
- export REACT_APP_GL_VERSION=`node -e "console.log(require('./packages/gl-react/package.json').version)"`
- cd packages/cookbook
- yarn run build
deploy:
provider: surge
project: ./packages/cookbook/build/
domain: gl-react-cookbook.surge.sh
skip_cleanup: true