-
-
Notifications
You must be signed in to change notification settings - Fork 146
/
Copy path.travis.yml
48 lines (40 loc) · 1.35 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
language: node_js
node_js: stable
# macOS 10.14
os: osx
osx_image: xcode11.3
# Note: 'chrome: stable' addon is not necessary since puppeteer package installs
# Chrome on `npm install`
before_script:
- |
git clone --depth 1 --single-branch https://github.com/emscripten-core/emsdk.git
cd emsdk
./emsdk install latest
./emsdk activate latest
source ./emsdk_env.sh
cd ..
- node --version
- emcc --version
script:
- echo -e "\\033[33;1mBuilding Normal Vim\\033[0m" && echo -en "travis_fold:start:BUILD_NORMAL\\r\\033[0K"
- ./build.sh
- echo -en "travis_fold:end:BUILD_NORMAL\\r\\033[0K"
- cd ./wasm
- echo -e "\\033[33;1mRunning Tests\\033[0m" && echo -en "travis_fold:start:TEST\\r\\033[0K"
- "npm test -- --travisci | tee log.txt | grep -v 'LOG: '"
- echo -en "travis_fold:end:TEST\\r\\033[0K"
- cd -
- echo -e "\\033[33;1mBuilding Small Vim\\033[0m" && echo -en "travis_fold:start:BUILD_SMALL\\r\\033[0K"
- make clean && VIM_FEATURE=small ./build.sh configure make emcc
- echo -en "travis_fold:end:BUILD_SMALL\\r\\033[0K"
after_failure:
- if [ -f ./wasm/log.txt ]; then cat ./wasm/log.txt; fi
- if [ -f ./log.txt ]; then cat ./log.txt; fi
- if [ -f ./src/config.log ]; then cat ./src/config.log; fi
cache:
npm: true
branches:
except:
- upstream
- /^wasm-[0-9]+\.[0-9]+\.[0-9]+$/
# vim:set sts=2 sw=2 tw=0 et: