diff --git a/keras_mxnet_ci/nightly-buildspec.yml b/keras_mxnet_ci/nightly-buildspec-python2.yml similarity index 96% rename from keras_mxnet_ci/nightly-buildspec.yml rename to keras_mxnet_ci/nightly-buildspec-python2.yml index 51089e7d8b3..05388b79e61 100644 --- a/keras_mxnet_ci/nightly-buildspec.yml +++ b/keras_mxnet_ci/nightly-buildspec-python2.yml @@ -27,4 +27,4 @@ phases: echo "Running PEP tests"; py.test --pep8 -m pep8 -n0; echo "Running Keras Unit Tests and Integration Tests for all the backends"; - py.test tests/; \ No newline at end of file + python -m pytest tests/; \ No newline at end of file diff --git a/keras_mxnet_ci/nightly-buildspec-python3.yml b/keras_mxnet_ci/nightly-buildspec-python3.yml new file mode 100644 index 00000000000..c3a4ee28330 --- /dev/null +++ b/keras_mxnet_ci/nightly-buildspec-python3.yml @@ -0,0 +1,30 @@ +version: 0.2 + +phases: + install: + commands: + echo "Checking out master branch"; + git fetch; + git checkout master; + echo "Installing MXNet"; + apt-get update; + sudo apt install -y python3-pip; + pip3 install mxnet --pre; + echo "Installing Tensorflow"; + pip3 install tensorflow; + echo "Installing Theano"; + pip3 install theano; + pip3 install pillow; + sudo apt-get -y install graphviz; + pip3 install --upgrade graphviz; + pip3 install pydot; + pip3 install nose; + echo "Installing Keras from source"; + pip3 install -e .[visualize,tests]; + + build: + commands: + echo "Running PEP tests"; + py.test --pep8 -m pep8 -n0; + echo "Running Keras Unit Tests and Integration Tests for all the backends"; + python3 -m pytest tests/; \ No newline at end of file diff --git a/keras_mxnet_ci/pr-buildspec.yml b/keras_mxnet_ci/pr-buildspec-python2.yml similarity index 96% rename from keras_mxnet_ci/pr-buildspec.yml rename to keras_mxnet_ci/pr-buildspec-python2.yml index 58d8f9f636a..c48d65c693e 100644 --- a/keras_mxnet_ci/pr-buildspec.yml +++ b/keras_mxnet_ci/pr-buildspec-python2.yml @@ -29,4 +29,4 @@ phases: echo "Running PEP tests"; py.test --pep8 -m pep8 -n0; echo "Running Keras Unit Tests and Integration Tests for all the backends"; - py.test tests/; + python -m pytest tests/; \ No newline at end of file diff --git a/keras_mxnet_ci/pr-buildspec-python3.yml b/keras_mxnet_ci/pr-buildspec-python3.yml new file mode 100644 index 00000000000..d3c97fa14de --- /dev/null +++ b/keras_mxnet_ci/pr-buildspec-python3.yml @@ -0,0 +1,32 @@ +version: 0.2 + +phases: + install: + commands: + echo $CODEBUILD_SOURCE_VERSION; + PRID=$(echo $CODEBUILD_SOURCE_VERSION | sed "s/pr/pull/g"); + echo "Checking out $PRID"; + git fetch origin $PRID/head:pr_test; + git checkout pr_test; + echo "Installing MXNet"; + apt-get update; + sudo apt install -y python3-pip; + pip3 install mxnet --pre; + echo "Installing Tensorflow"; + pip3 install tensorflow; + echo "Installing Theano"; + pip3 install theano; + pip3 install pillow; + sudo apt-get -y install graphviz; + pip3 install --upgrade graphviz; + pip3 install pydot; + pip3 install nose; + echo "Installing Keras from source"; + pip3 install -e .[visualize,tests]; + + build: + commands: + echo "Running PEP tests"; + py.test --pep8 -m pep8 -n0; + echo "Running Keras Unit Tests and Integration Tests for all the backends"; + python3 -m pytest tests/; \ No newline at end of file