Add circleci config with mac, windows and linux testing (#338)
- Add EMSDK_NOTTY variable which we can use on CI to prevent tty output. - Add test.bat for windows which mirrors test.sh. - Remove travis support
This commit is contained in:
92
.circleci/config.yml
Normal file
92
.circleci/config.yml
Normal file
@@ -0,0 +1,92 @@
|
||||
version: 2.1
|
||||
|
||||
orbs:
|
||||
win: circleci/windows@1.0.0
|
||||
|
||||
executors:
|
||||
bionic:
|
||||
docker:
|
||||
- image: buildpack-deps:bionic
|
||||
|
||||
jobs:
|
||||
flake8:
|
||||
executor: bionic
|
||||
steps:
|
||||
- checkout
|
||||
- run:
|
||||
name: install pip
|
||||
command: |
|
||||
apt-get update -q
|
||||
apt-get install -q -y python-pip python3-pip
|
||||
- run: python2 -m pip install --upgrade pip
|
||||
- run: python3 -m pip install --upgrade pip
|
||||
- run: python2 -m pip install flake8==3.7.8
|
||||
- run: python3 -m pip install flake8==3.7.8
|
||||
- run: python2 -m flake8 --show-source --statistics
|
||||
- run: python3 -m flake8 --show-source --statistics
|
||||
test-linux:
|
||||
executor: bionic
|
||||
environment:
|
||||
EMSDK_NOTTY: "1"
|
||||
# I don't know why circleci VMs pretent to have 36 cores but its a lie.
|
||||
EMSDK_NUM_CORES: "4"
|
||||
steps:
|
||||
- checkout
|
||||
- run:
|
||||
name: Install debian packages
|
||||
command: apt-get update -q && apt-get install -q -y cmake build-essential openjdk-8-jre-headless
|
||||
- run: ./test.sh
|
||||
- run: ./test.py
|
||||
test-mac:
|
||||
macos:
|
||||
xcode: "9.0"
|
||||
environment:
|
||||
EMSDK_NOTTY: "1"
|
||||
# Without this, any `brew installl` command will result in self-update of
|
||||
# brew itself which takes more than 4 minutes.
|
||||
HOMEBREW_NO_AUTO_UPDATE: "1"
|
||||
steps:
|
||||
- checkout
|
||||
- run:
|
||||
name: Install cmake
|
||||
command: brew install cmake
|
||||
- run: ./test.sh
|
||||
# TODO(sbc): Re-enable once the upstream emscripten fix makes it into
|
||||
# a relase: https://github.com/emscripten-core/emscripten/pull/9347
|
||||
#- run: ./test.py
|
||||
test-windows:
|
||||
executor:
|
||||
name: win/vs2019
|
||||
shell: bash.exe
|
||||
environment:
|
||||
# We need python installed before we can test anytyhing.
|
||||
# There seems to be undocument copy of python installed here. Hopefully
|
||||
# if this disappears there will be another way of getting a re-installed
|
||||
# version.
|
||||
PYTHON_BIN: "C:\\Python27amd64"
|
||||
PYTHONUNBUFFERED: "1"
|
||||
EMSDK_NOTTY: "1"
|
||||
steps:
|
||||
- checkout
|
||||
- run:
|
||||
name: Add python to bash path
|
||||
command: echo "export PATH=\"$PATH:/c/python27amd64/\"" >> $BASH_ENV
|
||||
- run:
|
||||
name: Install latest
|
||||
shell: cmd.exe
|
||||
command: test.bat
|
||||
- run: python test.py
|
||||
|
||||
workflows:
|
||||
flake8:
|
||||
jobs:
|
||||
- flake8
|
||||
test-linux:
|
||||
jobs:
|
||||
- test-linux
|
||||
test-mac:
|
||||
jobs:
|
||||
- test-mac
|
||||
test-windows:
|
||||
jobs:
|
||||
- test-windows
|
||||
Reference in New Issue
Block a user