Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: update pipelines #95

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 13 additions & 14 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
branches:
only: master
arch:
- arm64
- ppc64le
language: node_js
node_js:
- 8
- 10
- 12
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-5
- oracle-java8-installer
before_install:
- sudo update-java-alternatives -s java-8-oracle
- export JAVA_HOME=/usr/lib/jvm/java-8-oracle
- java -version
- wget https://archive.apache.org/dist/cassandra/3.10/apache-cassandra-3.10-bin.tar.gz
- tar -xzf apache-cassandra-3.10-bin.tar.gz
- sudo sh apache-cassandra-3.10/bin/cassandra -R
- 14
- 16
services: docker
before_install: npm install --global npm
script: |
chmod +x ./setup.sh && \
./setup.sh && \
npm test --ignore-scripts
4 changes: 2 additions & 2 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ printf "\n${CYAN}Image successfully built.${PLAIN}\n"

## run the cassandra container
printf "\n${RED}>> Starting the cassandra container${PLAIN} ${GREEN}...${PLAIN}"
CONTAINER_STATUS=$(docker run --name $CASSANDRA_CONTAINER -p $PORT:9042 -d cassandra:latest 2>&1)
CONTAINER_STATUS=$(docker run --name $CASSANDRA_CONTAINER -p $PORT:9042 -d cassandra:3.11 2>&1)
if [[ "$CONTAINER_STATUS" == *"Error"* ]]; then
printf "\n\n${CYAN}Status: ${PLAIN}${RED}Error starting container. Terminating setup.${PLAIN}\n\n"
exit 1
Expand Down Expand Up @@ -82,7 +82,7 @@ while [ "$OUTPUT" -ne 0 ] && [ "$TIMEOUT" -gt 0 ]
done

if [ "$TIMEOUT" -le 0 ]; then
printf "\n\n${CYAN}Status: ${PLAIN}${RED}Failed to created keyspace. Terminating setup.${PLAIN}\n\n"
printf "\n\n${CYAN}Status: ${PLAIN}${RED}Failed to create keyspace. Terminating setup.${PLAIN}\n\n"
exit 1
fi
printf "\n${CYAN}Successfully created keyspace.${PLAIN}\n"
Expand Down