-
-
Notifications
You must be signed in to change notification settings - Fork 174
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
147 additions
and
147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,150 +1,150 @@ | ||
version: 2 | ||
jobs: | ||
connect_to_initial_version: | ||
docker: | ||
- image: ubuntu:bionic | ||
steps: | ||
- run: | ||
name: Avoid hosts unknown for github | ||
command: mkdir -p ~/.ssh/ && echo -e "Host github.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config | ||
- run: | ||
name: Install system dependencies | ||
command: apt-get update; apt-get install -y git cmake protobuf-compiler libsodium-dev libgflags-dev libprotobuf-dev libutempter-dev g++ openssh-server | ||
- checkout | ||
- run: | ||
name: Set up ssh & known_hosts | ||
command: /etc/init.d/ssh start; rm -f ~/.ssh/id_rsa*; ssh-keygen -q -N "" -f ~/.ssh/id_rsa; cp ~/.ssh/id_rsa.pub ~/.ssh/authorized_keys; rm -f ~/.ssh/known_hosts; ssh -o "StrictHostKeyChecking no" localhost ls | ||
- run: | ||
name: Init submodules | ||
command: if [ $CIRCLE_BRANCH != "release" ]; then git submodule update --init; fi | ||
- run: | ||
name: Build the root version of the project | ||
command: mkdir ../root_version; cp -Rf .git * ../root_version/; cd ../root_version; git checkout v6; mkdir build; cd build; cmake ../; make -j4 | ||
- run: | ||
name: Build the project | ||
command: mkdir build; cd build; cmake ../; make -j4 | ||
- run: | ||
name: Connect new -> old | ||
command: ../root_version/build/etserver --daemon; cp ../root_version/build/etterminal /usr/bin/etterminal; sleep 1; build/et -c "ls" localhost --logtostdout --verbose=9 | ||
- run: | ||
name: Kill server | ||
command: pkill etserver | ||
- run: | ||
name: Connect old -> new | ||
command: export TERM=xterm-256color; build/etserver --daemon; cp build/etterminal /usr/bin/etterminal; sleep 1; ../root_version/build/et -c "ls" localhost --logtostdout --verbose=9 | ||
- run: | ||
name: Kill server | ||
command: pkill etserver | ||
linux_msan: | ||
docker: | ||
- image: ubuntu:bionic | ||
steps: | ||
- run: | ||
name: Avoid hosts unknown for github | ||
command: mkdir -p ~/.ssh/ && echo -e "Host github.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config | ||
- run: | ||
name: Install system dependencies | ||
command: apt-get update; apt-get install -y git cmake protobuf-compiler libsodium-dev libgflags-dev libprotobuf-dev libutempter-dev g++ | ||
- checkout | ||
- run: | ||
name: Init submodules | ||
command: git submodule update --init | ||
- run: | ||
name: Build the project with test | ||
command: mkdir build; cd build; cmake -DSANITIZE_MEMORY=ON ../; make -j4 | ||
- run: | ||
name: Run tests | ||
command: cd build; ./et-test | ||
linux_asan: | ||
docker: | ||
- image: ubuntu:bionic | ||
steps: | ||
- run: | ||
name: Avoid hosts unknown for github | ||
command: mkdir -p ~/.ssh/ && echo -e "Host github.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config | ||
- run: | ||
name: Install system dependencies | ||
command: apt-get update; apt-get install -y git cmake protobuf-compiler libsodium-dev libgflags-dev libprotobuf-dev libutempter-dev g++ | ||
- checkout | ||
- run: | ||
name: Init submodules | ||
command: if [ $CIRCLE_BRANCH != "release" ]; then git submodule update --init; fi | ||
- run: | ||
name: Build the project with test | ||
command: mkdir build; cd build; cmake -DSANITIZE_ADDRESS=ON ../; make -j4 | ||
- run: | ||
name: Run tests | ||
command: cd build; ./et-test | ||
linux_tsan: | ||
docker: | ||
- image: ubuntu:bionic | ||
steps: | ||
- run: | ||
name: Avoid hosts unknown for github | ||
command: mkdir -p ~/.ssh/ && echo -e "Host github.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config | ||
- run: | ||
name: Install system dependencies | ||
command: apt-get update; apt-get install -y git cmake protobuf-compiler libsodium-dev libgflags-dev libprotobuf-dev libutempter-dev g++ | ||
- checkout | ||
- run: | ||
name: Init submodules | ||
command: if [ $CIRCLE_BRANCH != "release" ]; then git submodule update --init; fi | ||
- run: | ||
name: Build the project with test | ||
command: mkdir build; cd build; cmake -DSANITIZE_THREAD=ON ../; make -j4 | ||
- run: | ||
name: Run tests | ||
command: cd build; ./et-test | ||
linux_ubsan: | ||
docker: | ||
- image: ubuntu:bionic | ||
steps: | ||
- run: | ||
name: Avoid hosts unknown for github | ||
command: mkdir -p ~/.ssh/ && echo -e "Host github.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config | ||
- run: | ||
name: Install system dependencies | ||
command: apt-get update; apt-get install -y git cmake protobuf-compiler libsodium-dev libgflags-dev libprotobuf-dev libutempter-dev g++ | ||
- checkout | ||
- run: | ||
name: Init submodules | ||
command: if [ $CIRCLE_BRANCH != "release" ]; then git submodule update --init; fi | ||
- run: | ||
name: Build the project with test | ||
command: mkdir build; cd build; cmake -DSANITIZE_UNDEFINED=ON ../; make -j4 | ||
- run: | ||
name: Run tests | ||
command: cd build; ./et-test | ||
mac_tsan: | ||
macos: | ||
xcode: "10.2.1" | ||
steps: | ||
- run: | ||
name: Avoid hosts unknown for github | ||
command: mkdir -p ~/.ssh/ && echo -e "Host github.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config | ||
- run: | ||
name: Install system dependencies | ||
command: brew remove python@2; brew upgrade python; brew install cmake; brew install protobuf libsodium gflags | ||
- checkout | ||
- run: | ||
name: Init submodules | ||
command: if [ $CIRCLE_BRANCH != "release" ]; then git submodule update --init; fi | ||
- run: | ||
name: Build the project with test | ||
command: mkdir build; cd build; cmake -DSANITIZE_THREAD=ON ../; make -j4 | ||
- run: | ||
name: Run tests | ||
command: cd build; ./et-test | ||
connect_to_initial_version: | ||
docker: | ||
- image: ubuntu:bionic | ||
steps: | ||
- run: | ||
name: Avoid hosts unknown for github | ||
command: mkdir -p ~/.ssh/ && echo -e "Host github.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config | ||
- run: | ||
name: Install system dependencies | ||
command: apt-get update; apt-get install -y git cmake protobuf-compiler libsodium-dev libgflags-dev libprotobuf-dev libutempter-dev g++ openssh-server | ||
- checkout | ||
- run: | ||
name: Set up ssh & known_hosts | ||
command: /etc/init.d/ssh start; rm -f ~/.ssh/id_rsa*; ssh-keygen -q -N "" -f ~/.ssh/id_rsa; cp ~/.ssh/id_rsa.pub ~/.ssh/authorized_keys; rm -f ~/.ssh/known_hosts; ssh -o "StrictHostKeyChecking no" localhost ls | ||
- run: | ||
name: Init submodules | ||
command: if [ $CIRCLE_BRANCH != "release" ]; then git submodule update --init; fi | ||
- run: | ||
name: Build the root version of the project | ||
command: mkdir ../root_version; cp -Rf .git * ../root_version/; cd ../root_version; git checkout v6; mkdir build; cd build; cmake ../; make -j4 | ||
- run: | ||
name: Build the project | ||
command: mkdir build; cd build; cmake ../; make -j4 | ||
- run: | ||
name: Connect new -> old | ||
command: ../root_version/build/etserver --daemon; cp ../root_version/build/etterminal /usr/bin/etterminal; sleep 1; build/et -c "ls" localhost --logtostdout --verbose=9 | ||
- run: | ||
name: Kill server | ||
command: pkill etserver | ||
- run: | ||
name: Connect old -> new | ||
command: export TERM=xterm-256color; build/etserver --daemon; cp build/etterminal /usr/bin/etterminal; sleep 1; ../root_version/build/et -c "ls" localhost --logtostdout --verbose=9 | ||
- run: | ||
name: Kill server | ||
command: pkill etserver | ||
linux_msan: | ||
docker: | ||
- image: ubuntu:bionic | ||
steps: | ||
- run: | ||
name: Avoid hosts unknown for github | ||
command: mkdir -p ~/.ssh/ && echo -e "Host github.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config | ||
- run: | ||
name: Install system dependencies | ||
command: apt-get update; apt-get install -y git cmake protobuf-compiler libsodium-dev libgflags-dev libprotobuf-dev libutempter-dev g++ | ||
- checkout | ||
- run: | ||
name: Init submodules | ||
command: git submodule update --init | ||
- run: | ||
name: Build the project with test | ||
command: mkdir build; cd build; cmake -DSANITIZE_MEMORY=ON ../; make -j4 | ||
- run: | ||
name: Run tests | ||
command: cd build; ./et-test | ||
linux_asan: | ||
docker: | ||
- image: ubuntu:bionic | ||
steps: | ||
- run: | ||
name: Avoid hosts unknown for github | ||
command: mkdir -p ~/.ssh/ && echo -e "Host github.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config | ||
- run: | ||
name: Install system dependencies | ||
command: apt-get update; apt-get install -y git cmake protobuf-compiler libsodium-dev libgflags-dev libprotobuf-dev libutempter-dev g++ | ||
- checkout | ||
- run: | ||
name: Init submodules | ||
command: if [ $CIRCLE_BRANCH != "release" ]; then git submodule update --init; fi | ||
- run: | ||
name: Build the project with test | ||
command: mkdir build; cd build; cmake -DSANITIZE_ADDRESS=ON ../; make -j4 | ||
- run: | ||
name: Run tests | ||
command: cd build; ./et-test | ||
linux_tsan: | ||
docker: | ||
- image: ubuntu:bionic | ||
steps: | ||
- run: | ||
name: Avoid hosts unknown for github | ||
command: mkdir -p ~/.ssh/ && echo -e "Host github.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config | ||
- run: | ||
name: Install system dependencies | ||
command: apt-get update; apt-get install -y git cmake protobuf-compiler libsodium-dev libgflags-dev libprotobuf-dev libutempter-dev g++ | ||
- checkout | ||
- run: | ||
name: Init submodules | ||
command: if [ $CIRCLE_BRANCH != "release" ]; then git submodule update --init; fi | ||
- run: | ||
name: Build the project with test | ||
command: mkdir build; cd build; cmake -DSANITIZE_THREAD=ON ../; make -j4 | ||
- run: | ||
name: Run tests | ||
command: cd build; ./et-test | ||
linux_ubsan: | ||
docker: | ||
- image: ubuntu:bionic | ||
steps: | ||
- run: | ||
name: Avoid hosts unknown for github | ||
command: mkdir -p ~/.ssh/ && echo -e "Host github.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config | ||
- run: | ||
name: Install system dependencies | ||
command: apt-get update; apt-get install -y git cmake protobuf-compiler libsodium-dev libgflags-dev libprotobuf-dev libutempter-dev g++ | ||
- checkout | ||
- run: | ||
name: Init submodules | ||
command: if [ $CIRCLE_BRANCH != "release" ]; then git submodule update --init; fi | ||
- run: | ||
name: Build the project with test | ||
command: mkdir build; cd build; cmake -DSANITIZE_UNDEFINED=ON ../; make -j4 | ||
- run: | ||
name: Run tests | ||
command: cd build; ./et-test | ||
mac_tsan: | ||
macos: | ||
xcode: "10.2.1" | ||
steps: | ||
- run: | ||
name: Avoid hosts unknown for github | ||
command: mkdir -p ~/.ssh/ && echo -e "Host github.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config | ||
- run: | ||
name: Install system dependencies | ||
command: brew remove python@2; brew upgrade python; brew install cmake; brew install protobuf libsodium gflags | ||
- checkout | ||
- run: | ||
name: Init submodules | ||
command: if [ $CIRCLE_BRANCH != "release" ]; then git submodule update --init; fi | ||
- run: | ||
name: Build the project with test | ||
command: mkdir build; cd build; cmake -DSANITIZE_THREAD=ON ../; make -j4 | ||
- run: | ||
name: Run tests | ||
command: cd build; ./et-test | ||
workflows: | ||
version: 2 | ||
build_and_test: | ||
jobs: | ||
- linux_asan | ||
- linux_tsan | ||
- linux_ubsan | ||
- mac_tsan | ||
- connect_to_initial_version: | ||
branches: | ||
ignore: | ||
- release | ||
|
||
version: 2 | ||
build_and_test: | ||
jobs: | ||
- linux_asan | ||
- linux_tsan | ||
- linux_ubsan | ||
- mac_tsan | ||
- connect_to_initial_version: | ||
filters: | ||
branches: | ||
ignore: | ||
- release |