forked from appium/appium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
65 lines (63 loc) · 1.47 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
language: node_js
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
env:
global:
- CXX=g++-4.8
node_js: "10"
jobs:
include:
- stage: Tests
os:
- linux
- sudo: false
script: npm run test && npm run e2e-test
node_js: "11"
- stage:
os:
- linux
- sudo: false
script: npm run test && npm run e2e-test
node_js: "10"
- stage:
os:
- linux
- sudo: false
script: npm run test && npm run e2e-test
node_js: "8"
- stage:
os:
- linux
- sudo: false
env:
# this is just to indicate in the Travis job list that this is generating docs
- GENERATE_DOCS=true
script: npm run generate-docs
- stage: BinTray Bundle Build and Upload
# only want to run this on the main master branch
if: branch = master AND type != pull_request
os:
- osx
- osx_image: xcode9.4
env:
- NODE_ENV=production
- CC=gcc
- CXX=g++
before_install:
- gcc --version
install:
# Install prod dependencies
- npm install
# Install only the dev dependencies that we need
- npm install --only=dev gulp
- npm install --only=dev appium-gulp-plugins
before_script:
# Build the assets
- npm run build
# Remove the dev depenedencies
- npm prune
script: npm run zip-and-upload