forked from qcif/data-curator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
102 lines (102 loc) · 3.33 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
sudo: required
language: c
cache:
directories:
- node_modules
- "$HOME/.electron"
- "$HOME/.cache"
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
install:
- nvm install 8
- curl -o- -L https://yarnpkg.com/install.sh | bash
- source ~/.bashrc
- yarn
script: true
stages:
- name: prescript
if: branch IN (ci)
- name: lint
if: branch IN (master, ci, testci, develop) OR type == pull_request OR tag =~ /^v\\d+\\.\\d+(\\.\\d+)?(-\\S*)?$/
- name: unittest
if: branch IN (master) OR type IN (pull_request)
- name: unittestandcoverage
if: branch IN (ci, testci)
- name: test
if: branch IN (ci, testci, master) OR type IN (pull_request)
- name: build
if: tag =~ /^v\\d+\\.\\d+(\\.\\d+)?(-\\S*)?$/
jobs:
include:
- stage: prescript
os: osx
- os: linux
before_script:
- ./scripts/ci_merge_script.sh
# merge script may update dependencies
script:
- yarn
- stage: lint
os: osx
- os: linux
script:
- yarn run lint
- stage: unittest
os: osx
- os: linux
script:
- yarn run clean
- yarn run unit
- stage: unittestandcoverage
# only allow failures when not in a critical branch (ie: master, tag)
allow_failures:
- os: linux
os: osx
script:
- yarn run clean
- yarn run unit
- yarn run unit:coverage
- os: linux
script:
- yarn run clean
- ./scripts/travis_headless_linux_unit_tests_script.sh
- stage: test
script: ./scripts/travis_headless_e2e_tests.sh test/features/backlog
os: osx
- os: linux
- script: ./scripts/travis_headless_e2e_tests.sh test/features/data_curator
os: osx
- os: linux
- script: ./scripts/travis_headless_e2e_tests.sh test/features/edit
os: osx
- os: linux
- script: ./scripts/travis_headless_e2e_tests.sh test/features/file
os: osx
- os: linux
- script: ./scripts/travis_headless_e2e_tests.sh test/features/find
os: osx
- os: linux
- script: ./scripts/travis_headless_e2e_tests.sh test/features/help
os: osx
- os: linux
- script: ./scripts/travis_headless_e2e_tests.sh test/features/other
os: osx
- os: linux
- script: ./scripts/travis_headless_e2e_tests.sh test/features/support
os: osx
- os: linux
- script: ./scripts/travis_headless_e2e_tests.sh test/features/tools
os: osx
- os: linux
- script: ./scripts/travis_headless_e2e_tests.sh test/features/window
os: osx
- os: linux
- stage: build
os: osx
- os: linux
script:
- yarn run clean
- yarn run release:predraft
env:
global:
secure: F+Bn6BrNKTTybkEs4UwCl7961z7ura2zBeuw+tS/vXqswb//x9DEhEr5IJ53VyC+H2R3Wj8yJ121514FiJwNg4hUpUQ98DHyczbMLXrg+wjQI2ZYvhiAonR5LzDGNd/XLhSDezQK556+guq67SnGPP3iqnfjyu8XJ2IaynLukvLSazZTCliuqpEpwaCn99+xhaHLcGRF/Dh2Gg5+HVfQnC4S6eiYGo5Dm9RDG0hntxYHUOAxQYmnvXxf7uLNc0sfFSoVd1BZytZCVFLceY5DM0tOO8kRyMQk+LJqneAdhp9Z8pUMcTMDeJtNegqqSaBra8UAkrGv1tUrBYUQnq4fkbH0tees6mJNFkqNlOW67pj8zghYSAKwNXiazFmH/lYE2sleBKGflznLZPDD5XXLlQ/aKXF+3wAx0wMtiGkFBbGP+GoBg10+7RgKw0A+mpLaJAVwUYGGJSEfH3A0U0OEt7XRdk/sD4nFKLzL3SAx3QC57FdGu4VWdJJT9t54oX+NzM3QmBH3dNxmge4XFLR1iwN72yheB2HyGu5zafKdOfbvCz2fP1ddECm2KWu8I7NNuBIwoBUm3tVm60b3gTpblAO3RcIrLg3k+ACTSvxJuzqSIE2/YnXGnjfVPW/NaCcyD1cPFppTvmpjLNHRfwP9zeP4nBOHHgOv7grzmvCs6QY=