forked from remirror/remirror
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
57 lines (49 loc) · 1.72 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
language: node_js
cache:
yarn: true
directories:
- ~/.cache
git:
depth: 5
node_js:
- '10'
env:
global:
- PATH=$HOME/.yarn/bin:$HOME/bin:$PATH
# Do multiple runs for testing and linting.
matrix:
- YARN_CMD=checks:ci # Run linting and typecheck
- YARN_CMD=test
- YARN_CMD=build
before_install:
- |
set -e
if [[ $YARN_CMD == 'test' ]]; then
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > $HOME/bin/cc-test-reporter;
chmod +x $HOME/bin/cc-test-reporter;
cc-test-reporter before-build;
fi
set +e
- curl -o- -L https://yarnpkg.com/install.sh | bash
- export PATH=$HOME/.yarn/bin:$HOME/bin:$PATH
install:
- yarn ci
- yarn audit
script:
- yarn $YARN_CMD
after_script:
- |
set -e
if [[ $YARN_CMD == 'test' ]] && [[ $TRAVIS_PULL_REQUEST == 'false' ]]; then
cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT;
fi
set +e
notifications:
slack:
rooms:
secure: j2M2e9gEo/aSsywv3P7ccqVNmN7eVNK4zJoSJy1SOtVqcZtYQChxM4nkTha86PnhCzGlBMpFbL6jl0OeEWvQfeAk2GOvDwqMM4o0/Mi5twWJM8bXkGhIbvCswoHXbZOgdpa6jbwOufUGOzKS19YSkr+TDmhK1M5R0aXUASKprrwgT/rZ/yLrN0IbGVsYw2PpV3V3HRLTrWjguAiJqcIUD8/58mwjN6J163Z3e/2NWdFivzYyH9LTRgMShD2opvP89pp2GiSgOkfAMfv+AN4t8v877b2toRbdAJQvtNFaHTvcCuoXaOK9hAKXK3NrunR7XLQZCayywQI5dcrcKW+ad/KiM3y6NVZJYoqOSyVkv/QTJt0/LNUp/Llv3EfS654D1NEDj+9FhZSxJz3heV7RdOOVoTy6RiyA1VGd54ED5DZQ5NZE14uZY38/NuhawSMRkBYBrb0AiQez5pqQ3/Bbmkj8d9RjbMiJm9nhHcCiyXUz1wEB3v3HLmS2cyIAe1gNcuyw0MDp2MpMm9GQZCbbomQJItnQy2SZLco3ig1sUpZoyAlTPM8ANWN6hVpd7CEd75fXPThxadVdeQaZ7OtY11fkCeQxpASBRIliTY+ZrVe37uOBWrvbo8jg0vBUMhbn34ksYzfSq+fJ0DNCSAu1eRRQFuvFBVviDSaKce2XKqA=
branches:
only:
- master
- canary
- ci/*